]> source.dussan.org Git - vaadin-framework.git/commitdiff
cleaning system error message
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 11 Sep 2007 11:37:49 +0000 (11:37 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 11 Sep 2007 11:37:49 +0000 (11:37 +0000)
svn changeset:2274/svn branch:trunk

src/com/itmill/toolkit/terminal/SystemError.java

index 1e3f9fa8a9f32bbb5ca648cdfbaf577043e525e3..90c045c18cadcae1779344bf5fa4d089356d28c4 100644 (file)
@@ -106,15 +106,12 @@ public class SystemError extends RuntimeException implements ErrorMessage {
                // Paint the error message
                String message = getLocalizedMessage();
                if (message != null) {
-                       target.addSection("b", message);
+                       target.addSection("h2", message);
                }
 
                // Paint the exception
                if (cause != null) {
-                       if (message != null)
-                               target.addUIDL("<br/><br/>");
-                       target.addSection("b", "Exception");
-                       target.addUIDL("<br/><br/>");
+                       target.addSection("h3", "Exception");
                        StringWriter buffer = new StringWriter();
                        cause.printStackTrace(new PrintWriter(buffer));
                        target.addSection("pre", buffer.toString());