Skip to content

Commit 6c773d2

Browse files
committed
Error handling
1 parent 17e9a28 commit 6c773d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import fs from "fs/promises";
2+
import {inspect} from 'node:util'
23
import * as core from "@actions/core";
34
import * as configuration from "./configuration";
45
import * as logger from "./logger";
@@ -118,7 +119,7 @@ process.on("unhandledRejection", function (reason) {
118119
process.exit(1);
119120
}
120121
})().catch((error) => {
121-
logger.error(JSON.stringify(error)).then(() => {
122+
logger.error(inspect(error)).then(() => {
122123
exit(error);
123124
});
124125
});

0 commit comments

Comments
 (0)