More info if command gives no output, just the exit code.
parent
c387abc50e
commit
63e29ea239
|
|
@ -34,7 +34,12 @@ class System {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (exitCode !== 0) {
|
if (exitCode !== 0) {
|
||||||
throw new Error(error);
|
let argumentsString = '';
|
||||||
|
if (Array.isArray(arguments_)) {
|
||||||
|
argumentsString += ` ${arguments_.join(' ')}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Error(`Failed to run "${command}${argumentsString}".\n ${error}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue