Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <web-client> use-activeresource : add default fallback for untranslated errors
  • From: Josef Reidinger <jreidinger@xxxxxxx>
  • Date: Mon, 21 Sep 2009 11:36:53 +0200
  • Message-id: <E1Mq44l-0008J4-HF@xxxxxxxxxxxxxxxx>
ref: refs/heads/use-activeresource
commit 06c092a5d8970684cce2629b82fafe5ed261bbfd
Author: Josef Reidinger <jreidinger@xxxxxxx>
Date: Mon Sep 21 11:36:40 2009 +0200

add default fallback for untranslated errors
---
webclient/lib/error_constructor.rb | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/webclient/lib/error_constructor.rb
b/webclient/lib/error_constructor.rb
index 07f47d1..6e1fae3 100644
--- a/webclient/lib/error_constructor.rb
+++ b/webclient/lib/error_constructor.rb
@@ -14,6 +14,9 @@ module ErrorConstructor
return _("Noone is logged to rest service.")
when "BADFILE"
return _("Target system is not consistent: Missing or corrupted file
#{error["file"]}")
+ else
+ RAILS_DEFAULT_LOGGER.warning "Untranslated message for exception
#{error["type"]}"
+ return error["description"]
end
end
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