From e0b5ccc5de04f1c8d2e06ff62ece865cfd597e75 Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Sun, 26 Jan 2014 19:02:34 +0100 Subject: Add callback to handleInput() for easier use in other projects Since handleInput works completely asynchronous it is necessary to provide a callback function for signaling finished operation. This allows other project to call the handleInput function. --- bin/coveralls.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/coveralls.js b/bin/coveralls.js index b003b15..324ec6d 100755 --- a/bin/coveralls.js +++ b/bin/coveralls.js @@ -13,6 +13,10 @@ process.stdin.on('data', function(chunk) { }); process.stdin.on('end', function() { - handleInput(input); + handleInput(input, function(err) { + if (err) { + throw err; + } + }); }); -- cgit v1.2.3