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 2c5b6e4 commit f6ce773Copy full SHA for f6ce773
index.js
@@ -339,9 +339,9 @@ async function run() {
339
/* istanbul ignore next */
340
if (require.main === module) {
341
run().catch((err) => {
342
- core.debug(`Received error: ${JSON.stringify(err)}`);
343
const httpStatusCode = err.$metadata ? err.$metadata.httpStatusCode : undefined;
344
core.setFailed(`${err.name} (Status code: ${httpStatusCode}): ${err.message}`);
+ core.debug(`Received error: ${JSON.stringify(err)}`).catch(() => { return err });
345
core.debug(err.stack);
346
process.exit(1);
347
});
0 commit comments