mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Describe errors in System.run
This commit is contained in:
parent
0159028bb1
commit
3718e05961
@ -48,11 +48,11 @@ class System {
|
|||||||
const exitCode = await exec(command, arguments_, { silent: true, listeners, ...options });
|
const exitCode = await exec(command, arguments_, { silent: true, listeners, ...options });
|
||||||
showOutput();
|
showOutput();
|
||||||
if (exitCode !== 0) {
|
if (exitCode !== 0) {
|
||||||
throwErrorShowing(error);
|
throwErrorShowing(`Command returned non-zero exit code.\nError: ${error}`);
|
||||||
}
|
}
|
||||||
} catch (inCommandError) {
|
} catch (inCommandError) {
|
||||||
showOutput();
|
showOutput();
|
||||||
throwErrorShowing(inCommandError);
|
throwErrorShowing(`In-command error caught: ${inCommandError}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -148,7 +148,7 @@ export default class Versioning {
|
|||||||
try {
|
try {
|
||||||
await this.git(['fetch', '--unshallow']);
|
await this.git(['fetch', '--unshallow']);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.warning(error);
|
core.warning(`Fetch --unshallow caught: ${error}`);
|
||||||
await this.git(['fetch']);
|
await this.git(['fetch']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user