]> source.dussan.org Git - vaadin-framework.git/commitdiff
Log theme loading error when it happens and not later (#14517)
authorArtur Signell <artur@vaadin.com>
Tue, 26 Aug 2014 18:28:06 +0000 (21:28 +0300)
committerLeif Åstrand <leif@vaadin.com>
Wed, 27 Aug 2014 14:03:14 +0000 (17:03 +0300)
Change-Id: I0d19e1c53dfe48a9a501ff25c19318b96c96ef3b

client/src/com/vaadin/client/ApplicationConnection.java

index 90aa0a14d676f6f6baaac5de2a62e1f86d8fbfee..c4603e548a7daf53179533e4e897e24ac1bca8c1 100644 (file)
@@ -1135,10 +1135,10 @@ public class ApplicationConnection implements HasHandlers {
             }
         } else {
             cssLoaded = true;
-            handleReceivedJSONMessage(new Date(), jsonText, json);
             if (cssWaits >= MAX_CSS_WAITS) {
-                VConsole.error("CSS files may have not loaded properly.");
+                getLogger().severe("CSS files may have not loaded properly.");
             }
+            handleReceivedJSONMessage(new Date(), jsonText, json);
         }
     }