Skip to content

Commit e961afe

Browse files
committed
feat: turn off sinatra show_exceptions when rack_env is production
1 parent 4e01407 commit e961afe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pact_broker/ui/controllers/base_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module Controllers
88
class Base < Padrino::Application
99

1010
set :root, File.join(File.dirname(__FILE__), '..')
11-
set :show_exceptions, true
11+
set :show_exceptions, ENV['RACK_ENV'] != 'production'
1212

1313
end
1414
end

0 commit comments

Comments
 (0)