Skip to content

Commit 67b4381

Browse files
committed
πŸ§‘β€πŸ’» die() will now wait 1 synchronous second before exiting
1 parent 2f20294 commit 67b4381

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Add test harness
55
* `die()` will exit the process with code 1 instead of 0
66
* Plugin load failures will not stop Alchemy from starting
7+
* `die()` will now wait 1 synchronous second before exiting
78

89
## 1.4.0 (2026-01-21)
910

β€Žlib/scripts/create_constants.jsβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,9 @@ DEFINE('die', function die(...args) {
115115
// (but blessed can't revert to original state without segfaulting)
116116
alchemy.Janeway.print(alchemy.SEVERE, args, {level: 2});
117117

118+
// Give logs time to flush before exiting
119+
Blast.sleepSync(1000);
120+
118121
// Exit with error code 1 to indicate failure
119122
process.exit(1);
120123
});

0 commit comments

Comments
Β (0)