]> source.dussan.org Git - vaadin-framework.git/commitdiff
More descriptive error message when async load fails (#9805) 38/138/1
authorLeif Åstrand <leif@vaadin.com>
Fri, 19 Oct 2012 11:05:20 +0000 (14:05 +0300)
committerLeif Åstrand <leif@vaadin.com>
Fri, 19 Oct 2012 11:05:20 +0000 (14:05 +0300)
Change-Id: Ic692b50fcd705f82eccd7727664897d4f1d40872

client/src/com/vaadin/client/metadata/TypeDataBundle.java

index 158672e3a62755ce13e519701118e8ce21fdc1d2..96f4884d524f508b0800d21d6303a04bce2691a5 100644 (file)
@@ -22,7 +22,10 @@ public abstract class TypeDataBundle implements RunAsyncCallback {
 
     @Override
     public void onFailure(Throwable reason) {
-        ConnectorBundleLoader.get().setLoadFailure(getName(), reason);
+        ConnectorBundleLoader.get().setLoadFailure(
+                getName(),
+                new RuntimeException("Failed to load bundle " + getName()
+                        + ": " + reason.getMessage(), reason));
     }
 
     public abstract void load();