Skip to content

Commit

Permalink
fix: maintain backward support for exitcrash
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Dec 13, 2024
1 parent 880fc42 commit 9c9de6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/monitor/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,13 @@ function run(options) {
}
} else {
bus.emit('crash');

// support the old syntax of `exitcrash` - 2024-12-13
if (options.exitcrash) {
options.exitCrash = true;
delete options.exitcrash;
}

if (options.exitCrash) {
utils.log.fail('app crashed');
if (!config.required) {
Expand Down

0 comments on commit 9c9de6e

Please # to comment.