mirror of
https://github.com/penpot/penpot.git
synced 2026-03-31 16:41:37 +02:00
✨ Add response to nitrate request when nitrate is down (#8722)
This commit is contained in:
@@ -51,6 +51,11 @@
|
||||
(fn []
|
||||
(let [response (handler)
|
||||
status (:status response)]
|
||||
(when-not status
|
||||
(l/error :hint "could't do the nitrate request, it is probably down"
|
||||
:uri uri)
|
||||
;; TODO decide what to do when Nitrate is inaccesible
|
||||
nil)
|
||||
(if (>= status 400)
|
||||
;; For error status codes (4xx, 5xx), fail immediately without validation
|
||||
(do
|
||||
|
||||
Reference in New Issue
Block a user