Skip to content

Commit

Permalink
Allow the process to exit naturally in CLI mode
Browse files Browse the repository at this point in the history
  • Loading branch information
codenirvana committed Mar 3, 2022
1 parent d8e3196 commit de918df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
master:
fixed bugs:
- Allow the process to exit naturally in CLI mode
chores:
- Updated dependencies

Expand Down
2 changes: 1 addition & 1 deletion bin/newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ program
console.error(`error: ${err.message || err}\n`);
err.friendly && console.error(` ${err.friendly}\n`);
}
runError && !_.get(options, 'suppressExitCode') && process.exit(1);
runError && !_.get(options, 'suppressExitCode') && (process.exitCode = 1);
});
});

Expand Down

0 comments on commit de918df

Please sign in to comment.