mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Refactoring: Simplify retrieving error message
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
checkDiskUsage,
|
||||
checkForTimeout,
|
||||
checkGitHubVersionInRange,
|
||||
getErrorMessage,
|
||||
wrapError,
|
||||
} from "./util";
|
||||
|
||||
@@ -117,9 +118,9 @@ async function runWrapper() {
|
||||
await run();
|
||||
} catch (error) {
|
||||
core.setFailed(
|
||||
`${ActionName.ResolveEnvironment} action failed: ${
|
||||
wrapError(error).message
|
||||
}`,
|
||||
`${ActionName.ResolveEnvironment} action failed: ${getErrorMessage(
|
||||
error,
|
||||
)}`,
|
||||
);
|
||||
}
|
||||
await checkForTimeout();
|
||||
|
||||
Reference in New Issue
Block a user