changed production.rb to display errors