Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> resource-restful : switch to new error reporting tool
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 21 Sep 2009 13:34:46 +0200
  • Message-id: <E1Mq44L-0008EZ-Sh@xxxxxxxxxxxxxxxx>
ref: refs/heads/resource-restful
commit aa40f79cdedc5c816c93df9ecead2d5e74a8cf4e
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Mon Sep 21 13:34:46 2009 +0200

switch to new error reporting tool
---
.../app/controllers/language_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/language/app/controllers/language_controller.rb
b/plugins/language/app/controllers/language_controller.rb
index f6a1a5a..a6c6878 100644
--- a/plugins/language/app/controllers/language_controller.rb
+++ b/plugins/language/app/controllers/language_controller.rb
@@ -23,7 +23,7 @@ class LanguageController < ApplicationController

else
logger.warn("No argument to update")
- render ErrorResult.error(404, 2, "format or internal error") and return
+ raise InvalidParameters.new [{:name => "language", :error => "Missing"}]
end
render :show
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages