Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> patch_refactor : correctly throw exception
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Fri, 25 Sep 2009 10:20:46 +0200
  • Message-id: <E1MrI2k-0005zG-VQ@xxxxxxxxxxxxxxxx>
ref: refs/heads/patch_refactor
commit 5817f24d47422da149be1df5cff2c9cb6d0a6259
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Fri Sep 25 10:20:46 2009 +0200

correctly throw exception
---
plugins/ntp/app/controllers/ntp_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/ntp/app/controllers/ntp_controller.rb
b/plugins/ntp/app/controllers/ntp_controller.rb
index 99c5b8e..21c777b 100644
--- a/plugins/ntp/app/controllers/ntp_controller.rb
+++ b/plugins/ntp/app/controllers/ntp_controller.rb
@@ -16,7 +16,7 @@ class NtpController < ApplicationController
def update
root = params["ntp"]
if root == nil || root == {} #FIXME exception for this
- raise InvalidParameters :ntp => "Missing"
+ raise InvalidParameters.new :ntp => "Missing"
end

@ntp = Ntp.find
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages