Skip to content

Commit

Permalink
feat: use hardcoded error message when error class has a nil message
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 15, 2019
1 parent 4e75a04 commit 03a3b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/api/resources/error_handler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def self.reportable?(e)

def self.display_message(e, error_reference)
if PactBroker.configuration.show_backtrace_in_error_response?
e.message
e.message || obfuscated_error_message(error_reference)
else
reportable?(e) ? obfuscated_error_message(error_reference) : e.message
end
Expand Down

0 comments on commit 03a3b63

Please sign in to comment.