Skip to content

Commit 9c9de6e

Browse files
committedDec 13, 2024·
fix: maintain backward support for exitcrash
1 parent 880fc42 commit 9c9de6e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎lib/monitor/run.js

+7
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,13 @@ function run(options) {
249249
}
250250
} else {
251251
bus.emit('crash');
252+
253+
// support the old syntax of `exitcrash` - 2024-12-13
254+
if (options.exitcrash) {
255+
options.exitCrash = true;
256+
delete options.exitcrash;
257+
}
258+
252259
if (options.exitCrash) {
253260
utils.log.fail('app crashed');
254261
if (!config.required) {

0 commit comments

Comments
 (0)
Please sign in to comment.