We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
getErrorMessage
1 parent a14f75e commit f3f52bfCopy full SHA for f3f52bf
1 file changed
pr-checks/check-repo-size.ts
@@ -14,8 +14,6 @@ import * as fs from "node:fs";
14
import * as path from "node:path";
15
import { parseArgs } from "node:util";
16
17
-import { getErrorMessage } from "../src/util";
18
-
19
import { REPO_ROOT } from "./config";
20
21
/** Hidden marker used to find the existing sticky comment on a PR. */
@@ -215,7 +213,7 @@ async function run(): Promise<void> {
215
213
try {
216
214
process.exit(await main());
217
} catch (err) {
218
- console.error(getErrorMessage(err));
+ console.error(err instanceof Error ? err.message : String(err));
219
process.exit(1);
220
}
221
0 commit comments