Skip to content

Commit

Permalink
Log failure to update status also when not in verbose mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerluan committed Feb 18, 2021
1 parent c4fa130 commit 7702589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/runner/Executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export class Executor {
const urlForInfo = issueURL || this.ciSource.ciRunURL
const successPosting = await this.platform.updateStatus(passed, messageForResults(results), urlForInfo, dangerID)

if (!successPosting && this.options.verbose) {
if (!successPosting) {
this.log("Could not add a commit status, the GitHub token for Danger does not have access rights.")
this.log("If the build fails, then danger will use a failing exit code.")
}
Expand Down

0 comments on commit 7702589

Please sign in to comment.