mirror of
https://github.com/github/codeql-action.git
synced 2026-12-01 19:32:49 +08:00
Revert getErrorMessage import
To avoid requiring additional dependencies
This commit is contained in:
1 parent
a14f75e3ac
commit
f3f52bf568
1 file changed
+1
-3
@@ -14,8 +14,6 @@ import * as fs from "node:fs";
|
||||
import * as path from "node:path";
|
||||
import { parseArgs } from "node:util";
|
||||
|
||||
import { getErrorMessage } from "../src/util";
|
||||
|
||||
import { REPO_ROOT } from "./config";
|
||||
|
||||
/** Hidden marker used to find the existing sticky comment on a PR. */
|
||||
@@ -215,7 +213,7 @@ async function run(): Promise<void> {
|
||||
try {
|
||||
process.exit(await main());
|
||||
} catch (err) {
|
||||
console.error(getErrorMessage(err));
|
||||
console.error(err instanceof Error ? err.message : String(err));
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user