ref: refs/heads/master
commit 6b3da70d18d932ba0fc10899bc132066d8dc1b8f
Author: Klaus Kämpf
Date: Thu Jul 9 14:03:57 2009 +0200
Code robustness
---
.../app/controllers/controlpanel_controller.rb | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/webclient/app/controllers/controlpanel_controller.rb b/webclient/app/controllers/controlpanel_controller.rb
index 7f8100e..89f0ef9 100644
--- a/webclient/app/controllers/controlpanel_controller.rb
+++ b/webclient/app/controllers/controlpanel_controller.rb
@@ -52,10 +52,15 @@ class ControlpanelController < ApplicationController
# Check patches
def check_update
@proxy = YaST::ServiceResource.proxy_for('org.opensuse.yast.system.patches')
+ # FIXME: check @proxy
begin
patch_updates = @proxy.find(:all) || []
- rescue ActiveResource::ClientError => e
- flash[:error] = YaST::ServiceResource.error(e)
+ rescue ActiveResource::ClientError => e
+ flash[:error] = YaST::ServiceResource.error(e)
+ return
+ rescue Exception => e
+ flash[:error] = e
+ return
end
@security = 0
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org