mirror of
https://github.com/status-im/burnchart.git
synced 2025-01-19 07:03:27 +00:00
throw on request error
will improve in the future
This commit is contained in:
parent
3ca474502a
commit
236e91abb2
@ -26,6 +26,8 @@ Issues =
|
|||||||
response.on "data", (chunk) -> json += chunk
|
response.on "data", (chunk) -> json += chunk
|
||||||
|
|
||||||
response.on "end", -> callback JSON.parse(json), type
|
response.on "end", -> callback JSON.parse(json), type
|
||||||
|
else
|
||||||
|
throw response.statusCode
|
||||||
).end()
|
).end()
|
||||||
|
|
||||||
# URLs to API.
|
# URLs to API.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user