From f201d1dae559fb6254a344d7c149ac1089b930be Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 15 Dec 2017 13:00:43 +1100 Subject: [PATCH] feat(matrix ui): do not log validation errors --- lib/pact_broker/ui/controllers/matrix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/ui/controllers/matrix.rb b/lib/pact_broker/ui/controllers/matrix.rb index 26fdb6eca..56743d77c 100644 --- a/lib/pact_broker/ui/controllers/matrix.rb +++ b/lib/pact_broker/ui/controllers/matrix.rb @@ -32,7 +32,7 @@ class Matrix < Base end end rescue StandardError => e - log_error e + log_error(e) unless e.is_a?(PactBroker::Error) locals[:errors] = [e.message] end haml :'matrix/show', {locals: locals, layout: :'layouts/main'}