Skip to content

Commit

Permalink
Merge pull request #59 from danger/50-broken-dangerfile-fails-build
Browse files Browse the repository at this point in the history
Set exit code to 1 when error running Dangerfile
  • Loading branch information
orta committed Dec 27, 2016
2 parents 32d8641 + c1e9f94 commit 23f2995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Add your own contribution below

* Set exit code to 1 when running `danger` throws an error - macklinu
* Add Jenkins CI source - macklinu
* Add .editorconfig - macklinu

Expand Down
1 change: 1 addition & 0 deletions source/commands/danger-run.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ if (source && source.isPR) {
const exec = new Executor(source, platform)
exec.runDanger()
} catch (error) {
process.exitCode = 1
console.error(error.message)
console.error(error)
}
Expand Down

0 comments on commit 23f2995

Please sign in to comment.