mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 09:26:12 +02:00
✨ Minor improvements on error reporting.
Add missing expound.
This commit is contained in:
parent
9f7a04e330
commit
110fb2e8db
4 changed files with 22 additions and 7 deletions
|
@ -150,14 +150,14 @@
|
|||
(binding [ppr/*print-right-margin* 300]
|
||||
(let [context (dissoc report
|
||||
:trace :cause :params :data :spec-problems
|
||||
:spec-value :error :explain :hint)
|
||||
:spec-explain :spec-value :error :explain :hint)
|
||||
params {:context (with-out-str (ppr/pprint context))
|
||||
:hint (:hint report)
|
||||
:spec-explain (:spec-explain report)
|
||||
:spec-problems (:spec-problems report)
|
||||
:spec-value (:spec-value report)
|
||||
:data (:data report)
|
||||
:trace (or (:cause report)
|
||||
(:trace report)
|
||||
:trace (or (:trace report)
|
||||
(some-> report :error :trace))
|
||||
:params (:params report)}]
|
||||
(-> (io/resource "templates/error-report.tmpl")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue