Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] <web-client> master : Code robustness
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Thu, 9 Jul 2009 14:03:57 +0200
  • Message-id: <E1MOsM7-0006xS-LP@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 6b3da70d18d932ba0fc10899bc132066d8dc1b8f
Author: Klaus Kämpf <kkaempf@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages