aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPatrick Gansterer <[email protected]>2014-01-26 19:02:34 +0100
committerPatrick Gansterer <[email protected]>2014-01-26 19:24:59 +0100
commite0b5ccc5de04f1c8d2e06ff62ece865cfd597e75 (patch)
treea0c6c98f1572121b663d834f4ab335c035402253 /bin
parentcbfe6bcad8db471d712c4e7fac6e293bb9688608 (diff)
downloadnode-coveralls-e0b5ccc5de04f1c8d2e06ff62ece865cfd597e75.tar.xz
node-coveralls-e0b5ccc5de04f1c8d2e06ff62ece865cfd597e75.zip
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.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/coveralls.js6
1 files changed, 5 insertions, 1 deletions
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;
+ }
+ });
});