mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 10:46:27 +02:00
bugfix: catch error - "e is not defined"
This commit is contained in:
parent
37141e87f6
commit
dc4bb294b6
1 changed files with 22 additions and 22 deletions
|
@ -271,8 +271,8 @@ class Job {
|
||||||
const { emit_event_bus_result, emit_event_bus_stage } =
|
const { emit_event_bus_result, emit_event_bus_stage } =
|
||||||
event_bus === null
|
event_bus === null
|
||||||
? {
|
? {
|
||||||
emit_event_bus_result: () => {},
|
emit_event_bus_result: () => { },
|
||||||
emit_event_bus_stage: () => {},
|
emit_event_bus_stage: () => { },
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
emit_event_bus_result: (stage, result, event_bus) => {
|
emit_event_bus_result: (stage, result, event_bus) => {
|
||||||
|
@ -397,7 +397,7 @@ class Job {
|
||||||
// Then clear them out of the process tree
|
// Then clear them out of the process tree
|
||||||
try {
|
try {
|
||||||
process.kill(proc, 'SIGKILL');
|
process.kill(proc, 'SIGKILL');
|
||||||
} catch {
|
} catch (e) {
|
||||||
// Could already be dead and just needs to be waited on
|
// Could already be dead and just needs to be waited on
|
||||||
this.logger.debug(
|
this.logger.debug(
|
||||||
`Got error while SIGKILLing process ${proc}:`,
|
`Got error while SIGKILLing process ${proc}:`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue