Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #136 from github/always_log_error
Always log the full error
Robert authored and GitHub committed Aug 6, 2020

Unverified

No user is associated with the committer email.
2 parents 3a28cb4 + ac66bbe commit 8608105
Showing 12 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/autobuild.js

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

2 changes: 1 addition & 1 deletion lib/autobuild.js.map

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

1 change: 1 addition & 0 deletions lib/finalize-db.js

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

2 changes: 1 addition & 1 deletion lib/finalize-db.js.map

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

2 changes: 2 additions & 0 deletions lib/setup-tracer.js

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

2 changes: 1 addition & 1 deletion lib/setup-tracer.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/upload-sarif.js
2 changes: 1 addition & 1 deletion lib/upload-sarif.js.map
1 change: 1 addition & 0 deletions src/autobuild.ts
@@ -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;
}
1 change: 1 addition & 0 deletions src/finalize-db.ts
@@ -152,6 +152,7 @@ async function run() {

} catch (error) {
core.setFailed(error.message);
console.log(error);
await sendStatusReport(startedAt, queriesStats, uploadStats, error);
return;
}
2 changes: 2 additions & 0 deletions src/setup-tracer.ts
@@ -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',
1 change: 1 addition & 0 deletions src/upload-sarif.ts
@@ -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',

0 comments on commit 8608105

Please sign in to comment.