0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 00:10:11 -05:00

🐛 Fix validation of validation error on file validate ns

This commit is contained in:
Andrey Antukh 2024-01-05 11:09:21 +01:00
parent c53e476ba2
commit cfe7ba34f7
4 changed files with 7 additions and 2 deletions

View file

@ -26,6 +26,7 @@
<Logger name="app.worker" level="trace" />
<Logger name="app.msgbus" level="info" />
<Logger name="app.http.websocket" level="info" />
<Logger name="app.http.sse" level="info" />
<Logger name="app.util.websocket" level="info" />
<Logger name="app.redis" level="info" />
<Logger name="app.rpc.rlimit" level="info" />

View file

@ -80,6 +80,9 @@
(try
(tap "end" (handler))
(catch Throwable cause
(binding [l/*context* (errors/request->context request)]
(l/err :hint "unexpected error process streaming response"
:cause cause))
(tap "error" (errors/handle' cause request)))
(finally
(sp/close! *channel*)

View file

@ -48,7 +48,8 @@
:not-head-main-not-allowed
:not-head-copy-not-allowed
:not-component-not-allowed
:component-nil-objects-not-allowed})
:component-nil-objects-not-allowed
:instance-head-not-frame})
(def ^:private
schema:error

View file

@ -728,7 +728,7 @@
::log/sync? true)
(let [edata (if (map? cause) cause (ex-data cause))]
(println "Error data:")
(pp/pprint (dissoc edata :explain) {:level 2 :length 10})
(pp/pprint (dissoc edata :explain) {:level 3 :length 10})
(when (string? (:explain edata))
(js/console.log (:explain edata)))