We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d4af4a + 6763035 commit 28b81b8Copy full SHA for 28b81b8
1 file changed
packages/core/src/hooks/hookRunner.ts
@@ -420,15 +420,19 @@ export class HookRunner {
420
}
421
422
423
+ const killedBySignal = exitCode === null;
424
resolve({
425
hookConfig,
426
eventName,
427
success: exitCode === EXIT_CODE_SUCCESS,
428
output,
429
stdout,
430
stderr,
- exitCode: exitCode || EXIT_CODE_SUCCESS,
431
+ exitCode: exitCode ?? -1,
432
duration,
433
+ ...(killedBySignal && {
434
+ error: new Error('Hook killed by signal'),
435
+ }),
436
});
437
438
0 commit comments