diff options
author | Artur Signell <artur@vaadin.com> | 2015-06-24 23:28:22 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-06-25 19:45:30 +0300 |
commit | 10e7a466bc936737b81005cb50d90c8bc8ca49bd (patch) | |
tree | 81dfcfafb2c8a14eab90a4bb12c0fdac48d7563a /server/src | |
parent | 7552e9c4aa3c5bb7e7a4e5cfe50f4829a7c452af (diff) | |
download | vaadin-framework-10e7a466bc936737b81005cb50d90c8bc8ca49bd.tar.gz vaadin-framework-10e7a466bc936737b81005cb50d90c8bc8ca49bd.zip |
Pass critical notification details to the client (#18342)
Change-Id: I3c4eace624453eb854a32fef5fe44d253b164f62
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/server/VaadinService.java | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/server/src/com/vaadin/server/VaadinService.java b/server/src/com/vaadin/server/VaadinService.java index 74f0051e30..bff71fedee 100644 --- a/server/src/com/vaadin/server/VaadinService.java +++ b/server/src/com/vaadin/server/VaadinService.java @@ -1574,8 +1574,8 @@ public abstract class VaadinService implements Serializable { JsonObject appError = Json.createObject(); putValueOrJsonNull(appError, "caption", caption); putValueOrJsonNull(appError, "url", url); - putValueOrJsonNull(appError, "message", - createCriticalNotificationMessage(message, details)); + putValueOrJsonNull(appError, "message", message); + putValueOrJsonNull(appError, "details", details); JsonObject meta = Json.createObject(); meta.put("appError", appError); @@ -1595,17 +1595,6 @@ public abstract class VaadinService implements Serializable { return "for(;;);[" + returnString + "]"; } - private static String createCriticalNotificationMessage(String message, - String details) { - if (message == null) { - return details; - } else if (details != null) { - return message + "<br/><br/>" + details; - } - - return message; - } - private static void putValueOrJsonNull(JsonObject json, String key, String value) { if (value == null) { |