mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
More info if command gives no output, just the exit code.
This commit is contained in:
parent
7386c669ad
commit
8c9ff3249e
@ -34,7 +34,12 @@ class System {
|
||||
}
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user