Skip to content

Commit

Permalink
Move error to correct catch block
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Veytsman committed Apr 30, 2020
1 parent f237316 commit 7963db1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/autobuild.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/autobuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function run() {
core.endGroup();

} catch (error) {
core.setFailed(error.message);
core.setFailed("We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. " + error.message);
await util.reportActionFailed('autobuild', error.message, error.stack);
return;
}
Expand All @@ -58,6 +58,6 @@ async function run() {
}

run().catch(e => {
core.setFailed("We were unable to automatically build your code. Please replace the call to the autobuild action with your custom build steps. codeql/autobuild action failed. " + e);
core.setFailed("autobuild action failed. " + e);
console.log(e);
});

0 comments on commit 7963db1

Please sign in to comment.