Skip to content

Commit f3f52bf

Browse files
committed
Revert getErrorMessage import
To avoid requiring additional dependencies
1 parent a14f75e commit f3f52bf

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

pr-checks/check-repo-size.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ import * as fs from "node:fs";
1414
import * as path from "node:path";
1515
import { parseArgs } from "node:util";
1616

17-
import { getErrorMessage } from "../src/util";
18-
1917
import { REPO_ROOT } from "./config";
2018

2119
/** Hidden marker used to find the existing sticky comment on a PR. */
@@ -215,7 +213,7 @@ async function run(): Promise<void> {
215213
try {
216214
process.exit(await main());
217215
} catch (err) {
218-
console.error(getErrorMessage(err));
216+
console.error(err instanceof Error ? err.message : String(err));
219217
process.exit(1);
220218
}
221219
}

0 commit comments

Comments
 (0)