Skip to content

Commit d90c802

Browse files
committed
fix: if cannot parse err, just print
1 parent 72b4600 commit d90c802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ if (require.main === module) {
340340
run().catch((err) => {
341341
const httpStatusCode = err.$metadata ? err.$metadata.httpStatusCode : undefined;
342342
core.setFailed(`${err.name} (Status code: ${httpStatusCode}): ${err.message}`);
343-
core.debug(`Received error: ${JSON.stringify(err)}`);
343+
core.debug(`Received error: ${JSON.stringify(err)}`).catch(() => { return err });
344344
core.debug(err.stack);
345345
process.exit(1);
346346
});

0 commit comments

Comments
 (0)