Minor improvement on telemetry server error reporting.

This commit is contained in:
Andrey Antukh 2021-02-09 14:24:46 +01:00
parent 6f0258c8d4
commit e4fb802d7a
3 changed files with 9 additions and 3 deletions

View file

@ -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)}