diff --git a/lib/autobuild.js b/lib/autobuild.js index 8f3dcecba..6776b80ff 100644 --- a/lib/autobuild.js +++ b/lib/autobuild.js @@ -48,13 +48,13 @@ 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; } await util.reportActionSucceeded('autobuild'); } 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); }); diff --git a/src/autobuild.ts b/src/autobuild.ts index 519ebb190..4dedb3343 100644 --- a/src/autobuild.ts +++ b/src/autobuild.ts @@ -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; } @@ -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); });