Skip to content

Commit a22c7b1

Browse files
committed
chore: rewrite log message
the process did not necessarily fail to spawn ; it could have spawned and exited with a non-success exit code. reflecting it in the log message.
1 parent 129523e commit a22c7b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function exec(bin: string, ...processArgs: IProcessArgument[]):
2323
.catch((error) => {
2424
const message = (error && error.stderr) || 'Unknown reason';
2525
const loggableArguments = processArgs.filter((arg) => !arg.sanitise).map((arg) => arg.body);
26-
logger.warn({message, bin, loggableArguments}, 'could not spawn the process');
26+
logger.warn({message, bin, loggableArguments}, 'child process failure');
2727
throw error;
2828
});
2929
}

0 commit comments

Comments
 (0)