Skip to content

Commit 7963db1

Browse files
author
Max Veytsman
committed
Move error to correct catch block
1 parent f237316 commit 7963db1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/autobuild.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/autobuild.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async function run() {
4949
core.endGroup();
5050

5151
} catch (error) {
52-
core.setFailed(error.message);
52+
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);
5353
await util.reportActionFailed('autobuild', error.message, error.stack);
5454
return;
5555
}
@@ -58,6 +58,6 @@ async function run() {
5858
}
5959

6060
run().catch(e => {
61-
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);
61+
core.setFailed("autobuild action failed. " + e);
6262
console.log(e);
6363
});

0 commit comments

Comments
 (0)