ref: refs/heads/patch_refactor
commit 5817f24d47422da149be1df5cff2c9cb6d0a6259
Author: Josef Reidinger
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@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org