Skip to content

Commit

Permalink
Merge pull request #8 from dovidgef/main
Browse files Browse the repository at this point in the history
Improve usefulness of error logging
  • Loading branch information
tkadlec authored Feb 7, 2022
2 parents b9717fb + 9d017e1 commit f61def5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const runTest = (wpt, url, options) => {
return reject(err);
}
} catch (e) {
core.info(e);
core.info(e.statusText || JSON.stringify(e));
}
})
});
Expand Down Expand Up @@ -82,7 +82,7 @@ async function renderComment(data) {
body: markdown
});
} catch (e) {
core.setFailed(`Action failed with error ${e}`);
core.setFailed(`Action failed with error: ${e.statusText || JSON.stringify(e)}`);
}
}
function collectData(results, runData) {
Expand Down Expand Up @@ -186,12 +186,12 @@ async function run() {
return;
}
} catch (e) {
core.setFailed(`Action failed with error ${e}`);
core.setFailed(`Action failed with error: ${e.statusText || JSON.stringify(e)}`);
}

});
} catch (e) {
core.setFailed(`Action failed with error ${e}`);
core.setFailed(`Action failed with error: ${e.statusText || JSON.stringify(e)}`);
}
})).then(() => {
if (isReportSupported()) {
Expand Down

0 comments on commit f61def5

Please sign in to comment.