always log full error

This commit is contained in:
Robert Brignull 2020-08-05 09:40:28 +01:00
parent 42235cc048
commit 8127c47bbd
12 changed files with 14 additions and 4 deletions

View file

@ -68,6 +68,7 @@ async function run() {
} catch (error) {
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);
console.log(error);
await sendCompletedStatusReport(startedAt, [language], language, error);
return;
}

View file

@ -152,6 +152,7 @@ async function run() {
} catch (error) {
core.setFailed(error.message);
console.log(error);
await sendStatusReport(startedAt, queriesStats, uploadStats, error);
return;
}

View file

@ -195,6 +195,7 @@ async function run() {
} catch (e) {
core.setFailed(e.message);
console.log(e);
await util.sendStatusReport(await util.createStatusReportBase('init', 'aborted', startedAt, e.message));
return;
}
@ -268,6 +269,7 @@ async function run() {
} catch (error) {
core.setFailed(error.message);
console.log(error);
await util.sendStatusReport(await util.createStatusReportBase(
'init',
'failure',

View file

@ -27,6 +27,7 @@ async function run() {
} catch (error) {
core.setFailed(error.message);
console.log(error);
await util.sendStatusReport(await util.createStatusReportBase(
'upload-sarif',
'failure',