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