0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00

Minor improvements on error report template

This commit is contained in:
Andrey Antukh 2022-09-21 11:30:00 +02:00
parent 65afa2a833
commit 395a7096bf
2 changed files with 2 additions and 1 deletions

View file

@ -213,7 +213,7 @@
(render-template [report] (render-template [report]
(let [context (dissoc report (let [context (dissoc report
:trace :cause :params :data :spec-problems :trace :cause :params :data :spec-problems :message
:spec-explain :spec-value :error :explain :hint) :spec-explain :spec-value :error :explain :hint)
params {:context (pp/pprint-str context :width 200) params {:context (pp/pprint-str context :width 200)
:hint (:hint report) :hint (:hint report)

View file

@ -46,6 +46,7 @@
(defn parse-event (defn parse-event
[event] [event]
(-> (parse-event-data event) (-> (parse-event-data event)
(assoc :hint (or (:hint event) (:message event)))
(assoc :tenant (cf/get :tenant)) (assoc :tenant (cf/get :tenant))
(assoc :host (cf/get :host)) (assoc :host (cf/get :host))
(assoc :public-uri (cf/get :public-uri)) (assoc :public-uri (cf/get :public-uri))