diff --git a/lib/pact/provider/rspec/pact_broker_formatter.rb b/lib/pact/provider/rspec/pact_broker_formatter.rb index 098fd766..218cce29 100644 --- a/lib/pact/provider/rspec/pact_broker_formatter.rb +++ b/lib/pact/provider/rspec/pact_broker_formatter.rb @@ -1,5 +1,6 @@ require 'rspec/core/formatters' require 'pact/provider/verification_results/publish_all' +require 'term/ansicolor' module Pact module Provider @@ -32,7 +33,7 @@ def stop(notification) if e hash[:exception] = { class: e.class.name, - message: e.message + message: ::Term::ANSIColor.uncolor(e.message) } end end