mirror of
https://github.com/smogon/sprites.git
synced 2026-07-10 14:33:35 -05:00
sheet: propagate exit code on 'exit' event instead of 'close'
This commit is contained in:
parent
efd1b7f05a
commit
cf593ed679
|
|
@ -44,6 +44,8 @@ for (const entry of sheet.entries) {
|
|||
}
|
||||
proc.stdin.end();
|
||||
|
||||
proc.on('close', (code) => {
|
||||
process.exit(code);
|
||||
proc.on('exit', (code, signal) => {
|
||||
if (code || signal) {
|
||||
process.exitCode = 1;
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user