Skip to content

Commit

Permalink
feat: turn off sinatra show_exceptions when rack_env is production
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Mar 8, 2018
1 parent 4e01407 commit e961afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/ui/controllers/base_controller.rb
Expand Up @@ -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
Expand Down

0 comments on commit e961afe

Please sign in to comment.