mirror of
https://github.com/penpot/penpot.git
synced 2025-05-19 14:56:14 +02:00
🐛 Fix status code checking on telemetry client task.
This commit is contained in:
parent
81c406bb60
commit
2195b8932e
1 changed files with 2 additions and 3 deletions
|
@ -60,10 +60,9 @@
|
||||||
:uri (:uri cfg)
|
:uri (:uri cfg)
|
||||||
:headers {"content-type" "application/json"}
|
:headers {"content-type" "application/json"}
|
||||||
:body (json/encode-str data)})]
|
:body (json/encode-str data)})]
|
||||||
|
(when (> (:status response) 206)
|
||||||
(when (not= 200 (:status response))
|
|
||||||
(ex/raise :type :internal
|
(ex/raise :type :internal
|
||||||
:code :invalid-response-from-google
|
:code :invalid-response
|
||||||
:context {:status (:status response)
|
:context {:status (:status response)
|
||||||
:body (:body response)}))))
|
:body (:body response)}))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue