Refactoring: Simplify retrieving error message
This commit is contained in:
parent
bbd7c801a0
commit
dd7307d603
54 changed files with 106 additions and 89 deletions
|
|
@ -8,7 +8,7 @@ import * as core from "@actions/core";
|
|||
|
||||
import * as actionsUtil from "./actions-util";
|
||||
import * as configUtils from "./config-utils";
|
||||
import { wrapError } from "./util";
|
||||
import { getErrorMessage } from "./util";
|
||||
|
||||
async function runWrapper() {
|
||||
try {
|
||||
|
|
@ -18,7 +18,7 @@ async function runWrapper() {
|
|||
}
|
||||
} catch (error) {
|
||||
core.setFailed(
|
||||
`start-proxy post-action step failed: ${wrapError(error).message}`,
|
||||
`start-proxy post-action step failed: ${getErrorMessage(error)}`,
|
||||
);
|
||||
}
|
||||
const config = await configUtils.getConfig(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue