mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 12:11:38 +02:00
✨ Minor improvement on telemetry server error reporting.
This commit is contained in:
parent
6f0258c8d4
commit
e4fb802d7a
3 changed files with 9 additions and 3 deletions
|
@ -63,6 +63,7 @@
|
|||
:uri (:uri cfg)
|
||||
:headers {"content-type" "application/json"}
|
||||
:body (json/encode-str data)})]
|
||||
|
||||
(when (not= 200 (:status response))
|
||||
(ex/raise :type :internal
|
||||
:code :invalid-response-from-google
|
||||
|
@ -129,7 +130,7 @@
|
|||
[{:keys [conn version]}]
|
||||
(merge
|
||||
{:version version
|
||||
:with-taiga (:telemetry-with-taiga cfg/config)
|
||||
:with-taiga (:telemetry-with-taiga cfg/config false)
|
||||
:total-teams (retrieve-num-teams conn)
|
||||
:total-projects (retrieve-num-projects conn)
|
||||
:total-files (retrieve-num-files conn)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue