diff --git a/app.coffee b/app.coffee index 17d0b48..68ff44e 100644 --- a/app.coffee +++ b/app.coffee @@ -26,6 +26,8 @@ Issues = response.on "data", (chunk) -> json += chunk response.on "end", -> callback JSON.parse(json), type + else + throw response.statusCode ).end() # URLs to API.