From e09135a577dfcce58ea69607e8d74faa426c739e Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Fri, 4 Feb 2011 14:49:53 -0800 Subject: [PATCH] exit with 1 on api error --- evilbot.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/evilbot.coffee b/evilbot.coffee index 72bd584..0a3d1d5 100644 --- a/evilbot.coffee +++ b/evilbot.coffee @@ -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()