diff --git a/lib/pact_broker/api/resources/error_handler.rb b/lib/pact_broker/api/resources/error_handler.rb index d745dd22a..52924cdf8 100644 --- a/lib/pact_broker/api/resources/error_handler.rb +++ b/lib/pact_broker/api/resources/error_handler.rb @@ -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