mirror of
https://github.com/github/codeql-action.git
synced 2025-12-30 19:20:08 +08:00
Include underlying error in error message
This commit is contained in:
@@ -210,13 +210,17 @@ export function cleanupDatabaseClusterDirectory(
|
||||
if (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
|
||||
}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user