From e7ad3a3b0312429a3d5d90448f6717656e8fad1f Mon Sep 17 00:00:00 2001 From: Thomas Schmidt Date: Wed, 20 Jul 2011 14:22:10 +0200 Subject: [PATCH] less error info for the user --- app/controllers/application_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7ae57f9..6ed2b37 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -134,7 +134,8 @@ class ApplicationController < ActionController::Base raise "Response was: #{response} #{response.body}" end rescue Exception => e - raise "Error connecting to #{uri_str}: #{e.to_s}" + logger.error "Error connecting to #{uri_str}: #{e.to_s}" + raise "Error connecting to OBS API: #{e.to_s}" return nil end end -- 2.1.4