Skip to content

Commit

Permalink
Set exit code to 1 when error running Dangerfile
Browse files Browse the repository at this point in the history
Resolves #50
  • Loading branch information
macklinu committed Dec 27, 2016
1 parent fd13950 commit b23d97d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

// Add your own contribution below

* Set exit code to 1 when running `danger` throws an error - macklinu

### 0.7.0


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 b23d97d

Please sign in to comment.