From e961afe2b17d7db0ecb8e017df63683105f52c74 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 8 Mar 2018 11:52:40 +1100 Subject: [PATCH] feat: turn off sinatra show_exceptions when rack_env is production --- lib/pact_broker/ui/controllers/base_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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