Skip to content

Commit

Permalink
fix(pact-publish): ensure process exits with a status 1 when error is…
Browse files Browse the repository at this point in the history
… raised

pact-node/issues/49#issuecomment-337804196
  • Loading branch information
bethesque committed Oct 19, 2017
1 parent c1e6674 commit 800f5cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/pact_broker/client/cli/publish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def version
default_task :broker

no_commands do
def self.exit_on_failure?
true
end

def validate pact_files
unless pact_files && pact_files.any?
Expand Down

0 comments on commit 800f5cd

Please sign in to comment.