Include underlying error in error message
This commit is contained in:
parent
c8fb403f2f
commit
3d849e9df2
6 changed files with 23 additions and 10 deletions
4
lib/init.js
generated
4
lib/init.js
generated
|
|
@ -137,12 +137,12 @@ rmSync = fs.rmSync) {
|
|||
// Hosted runners are automatically cleaned up, so this error should not occur for hosted runners.
|
||||
if ((0, actions_util_1.isSelfHostedRunner)()) {
|
||||
throw new util.ConfigurationError(`${blurb} This can happen if another process is using the directory or the directory is owned by a different user. ` +
|
||||
"Please clean up the directory manually and rerun the job.");
|
||||
`Please clean up the directory manually and rerun the job. Details: ${util.wrapError(e).message}`);
|
||||
}
|
||||
else {
|
||||
throw new Error(`${blurb} This shouldn't typically happen on hosted runners. ` +
|
||||
"If you are using an advanced setup, please check your workflow, otherwise we " +
|
||||
"recommend rerunning the job.");
|
||||
`recommend rerunning the job. Details: ${util.wrapError(e).message}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue