mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 01:36:37 +02:00
✨ Expose user-agent and frontend-version on error report.
This commit is contained in:
parent
c14dbc19f8
commit
b71d05935a
2 changed files with 28 additions and 2 deletions
|
@ -39,6 +39,11 @@
|
|||
:hint (ex-message error)
|
||||
:data edata}
|
||||
|
||||
|
||||
(let [headers (:headers request)]
|
||||
{:user-agent (get headers "user-agent")
|
||||
:frontend-version (get headers "x-frontend-version" "unknown")})
|
||||
|
||||
(when (and (map? edata) (:data edata))
|
||||
{:explain (explain-error edata)}))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue