ref: refs/heads/master
commit aca0e1b4f3e5d3a9b93837a9b8204ef89ce8ef13
Author: Josef Reidinger
Date: Wed Nov 4 14:48:47 2009 +0100
lazy load of ConfigFile library
---
.../app/controllers/application_controller.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/webservice/app/controllers/application_controller.rb b/webservice/app/controllers/application_controller.rb
index 7532f38..25b54d3 100644
--- a/webservice/app/controllers/application_controller.rb
+++ b/webservice/app/controllers/application_controller.rb
@@ -16,7 +16,8 @@ class ApplicationController < ActionController::Base
render :xml => exception, :status => 422 #422-resource invalid
end
- rescue_from YaST::ConfigFile::NotFoundError do |exception|
+#lazy load of YaST::Config library
+ rescue_from "YaST::ConfigFile::NotFoundError" do |exception|
#catch uncaught exception from reading yaml and report as
#Backend problem
logger.warn "Uncaught ConfigFile::NotFound exception. Reported as CorruptedFile"
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org