Mailinglist Archive: yast-commit (1771 mails)

< Previous Next >
[yast-commit] <rest-service> network : Revert "added exception check"
  • From: Ladislav Slezak <lslezak@xxxxxxxxxx>
  • Date: Mon, 24 Aug 2009 17:18:49 +0200
  • Message-id: <E1MiTqK-0006cf-J6@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit e6a55d6ea1b34001f4aaa252995bfde925e520f7
Author: Ladislav Slezak <lslezak@xxxxxxxxxx>
Date: Mon Aug 24 15:33:05 2009 +0200

Revert "added exception check"

This reverts commit fe92f302168a171f01f05f8f12fdad6980d9012e.
---
.../app/controllers/services_controller.rb | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/plugins/services/app/controllers/services_controller.rb
b/plugins/services/app/controllers/services_controller.rb
index b9803da..c3d5b51 100644
--- a/plugins/services/app/controllers/services_controller.rb
+++ b/plugins/services/app/controllers/services_controller.rb
@@ -8,11 +8,7 @@ class ServicesController < ApplicationController
render ErrorResult.error(403, 1, "no permission") and return
end

- begin
- @services = Service.find_all params
- rescue Exception => e
- render ErrorResult.error(404, 107, "cannot read services") and return
- end
+ @services = Service.find_all params
end

# PUT /services/1.xml
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages