Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> jr_ntp : change time to use new reporting of invalid arguments
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 21 Sep 2009 11:22:28 +0200
  • Message-id: <E1MpkqY-0005DB-Mm@xxxxxxxxxxxxxxxx>
ref: refs/heads/jr_ntp
commit b7f10188520c38d9a48db7b9e42f497408c8cd44
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Mon Sep 21 11:16:58 2009 +0200

change time to use new reporting of invalid arguments
---
.../time/app/controllers/systemtimes_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/time/app/controllers/systemtimes_controller.rb
b/plugins/time/app/controllers/systemtimes_controller.rb
index 7a2433d..73ab539 100644
--- a/plugins/time/app/controllers/systemtimes_controller.rb
+++ b/plugins/time/app/controllers/systemtimes_controller.rb
@@ -19,7 +19,7 @@ class SystemtimesController < ApplicationController

root = params[:time]
if root == nil
- render ErrorResult.error(404, 2, "format or internal error") and return
+ raise InvalidParameters.new [{:name => "Timezone", :error => "Missing"}]
end

@systemtime = Systemtime.create_from_xml(root)
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages