summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-10-19 14:05:20 +0300
committerLeif Åstrand <leif@vaadin.com>2012-10-19 14:05:20 +0300
commit9862687131e307dd546ac1502235b7a96d393417 (patch)
tree24c6e19825f57615e9663a6f542afb1ce6150a77
parent06efa74eafcf78e3654c60bd5c14bb97bed2b13d (diff)
downloadvaadin-framework-9862687131e307dd546ac1502235b7a96d393417.tar.gz
vaadin-framework-9862687131e307dd546ac1502235b7a96d393417.zip
More descriptive error message when async load fails (#9805)
Change-Id: Ic692b50fcd705f82eccd7727664897d4f1d40872
-rw-r--r--client/src/com/vaadin/client/metadata/TypeDataBundle.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/metadata/TypeDataBundle.java b/client/src/com/vaadin/client/metadata/TypeDataBundle.java
index 158672e3a6..96f4884d52 100644
--- a/client/src/com/vaadin/client/metadata/TypeDataBundle.java
+++ b/client/src/com/vaadin/client/metadata/TypeDataBundle.java
@@ -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();