diff options
| author | Patrick Gansterer <[email protected]> | 2014-01-26 19:02:34 +0100 |
|---|---|---|
| committer | Patrick Gansterer <[email protected]> | 2014-01-26 19:24:59 +0100 |
| commit | e0b5ccc5de04f1c8d2e06ff62ece865cfd597e75 (patch) | |
| tree | a0c6c98f1572121b663d834f4ab335c035402253 /bin | |
| parent | cbfe6bcad8db471d712c4e7fac6e293bb9688608 (diff) | |
| download | node-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-x | bin/coveralls.js | 6 |
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; + } + }); }); |
