mirror of
https://github.com/kennethreitz-archive/changebot.git
synced 2026-06-05 23:40:18 +00:00
exit with 1 on api error
This commit is contained in:
@@ -71,6 +71,7 @@ request = (method, path, body, callback) ->
|
||||
response.setEncoding('utf8')
|
||||
response.on 'data', (chunk) ->
|
||||
console.log chunk
|
||||
process.exit(1)
|
||||
|
||||
req.write(body) if method is 'POST' and body
|
||||
req.end()
|
||||
|
||||
Reference in New Issue
Block a user