@dotcom-tool-kit/logger
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -127,3 +127,3 @@ "use strict"; | ||
}); | ||
child.on('exit', (code) => { | ||
child.on('exit', (code, signal) => { | ||
if (code === 0) { | ||
@@ -133,3 +133,3 @@ resolve(); | ||
else { | ||
const error = new error_1.ToolKitError(`${process} process returned a non-zero exit code (${code})`); | ||
const error = new error_1.ToolKitError(`${process} process ${code ? `returned a non-zero exit code (${code})` : `was terminated by a ${signal} signal`}`); | ||
error.details = 'error output has been logged above ☝️'; | ||
@@ -136,0 +136,0 @@ error.exitCode = code ?? undefined; |
{ | ||
"name": "@dotcom-tool-kit/logger", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18116