W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2009

2006/unicorn/src/org/w3c/unicorn/action ObserveAction.java,1.8,1.9

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 02 Sep 2009 13:53:50 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MiqHW-00022B-Ik@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/action
In directory hutz:/tmp/cvs-serv7803/src/org/w3c/unicorn/action

Modified Files:
	ObserveAction.java 
Log Message:
internationalized message text

Index: ObserveAction.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/action/ObserveAction.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- ObserveAction.java	2 Sep 2009 10:40:45 -0000	1.8
+++ ObserveAction.java	2 Sep 2009 13:53:48 -0000	1.9
@@ -154,14 +154,13 @@
 			ObserveAction.logger.error("Exception : " + aException.getMessage(),
 					aException);
 			
-			if (mapOfOutputParameter.get("format").equals("xhtml10")) {
-				String errorMessage = (String) Framework.getLanguageProperties().get(langParameter).get("stack_trace_text");
+			if (mapOfOutputParameter.get("mimetype").equals("text/html")) {
 				String errorContent = "";
 				errorContent += aException.getMessage() + "\n";
 				for (StackTraceElement stackTraceElement : aException.getStackTrace()) {
 					errorContent += stackTraceElement.toString() + "\n";
 				}
-				Message mess = new Message(Message.Level.ERROR, errorMessage, errorContent);
+				Message mess = new Message(Message.Level.ERROR, "$stack_trace_text", errorContent);
 				req.setAttribute("unicorn_message", mess);
 				(new IndexAction()).doGet(req, resp);
 				
@@ -267,6 +266,8 @@
 
 			this.createOutput(resp, aUnicornCall,
 					mapOfSpecificParameter, mapOfOutputParameter, mapOfStringObject);
+		} catch (final IOException aException) {
+		
 		} catch (final Exception aException) {
 			ObserveAction.logger.error("Exception : " + aException.getMessage(),
 					aException);
Received on Wednesday, 2 September 2009 13:53:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:13 GMT