mirror of
https://github.com/github/codeql-action.git
synced 2026-05-21 13:04:08 +00:00
Revert getErrorMessage import
To avoid requiring additional dependencies
This commit is contained in:
@@ -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