Skip to content

Commit

Permalink
Fixing exit codes to be non-errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHagerman committed Apr 8, 2020
1 parent 9baa6cd commit 3838083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/subscribe.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ module.exports = class SubscribeCommand {

if (until && until === obj.data) {
console.log('Matching event received. Exiting...');
process.exit(1); // One matching event
process.exit(0);
}

if (max) {
eventCount = eventCount + 1;
if (eventCount === max) {
console.log(`${eventCount} event(s) received. Exiting...`);
process.exit(eventCount); // Number of events we received
process.exit(0);
}
}
}
Expand Down

0 comments on commit 3838083

Please sign in to comment.