diff --git a/lib/pact_broker/ui/controllers/base_controller.rb b/lib/pact_broker/ui/controllers/base_controller.rb index 87ee3c205..6333afab8 100644 --- a/lib/pact_broker/ui/controllers/base_controller.rb +++ b/lib/pact_broker/ui/controllers/base_controller.rb @@ -8,7 +8,7 @@ module Controllers class Base < Padrino::Application set :root, File.join(File.dirname(__FILE__), '..') - set :show_exceptions, true + set :show_exceptions, ENV['RACK_ENV'] != 'production' end end