We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a085b0d commit d63c418Copy full SHA for d63c418
hugoalh.GitHubActionsToolkit/module/nodejs-wrapper/lib/main.js
@@ -9,7 +9,16 @@ function base64ToUTF8(item) {
9
return Buffer.from(item, "base64").toString("utf8");
10
}
11
function errorHandle(reason) {
12
- console.error(reason?.message ?? reason);
+ let message;
13
+ if (typeof reason.message === "undefined") {
14
+ message = reason;
15
+ } else {
16
+ message = reason.message;
17
+ if (typeof reason.stack === "undefined") {
18
+ message = `\n${reason.stack}`
19
+ }
20
21
+ console.error(message);
22
return process.exit(1);
23
24
function resultHandle(result) {
0 commit comments