add more detail in the generated exception
git-svn-id: https://svn.apache.org/repos/asf/pivot/trunk@1205843 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wtk/src/org/apache/pivot/wtk/Container.java b/wtk/src/org/apache/pivot/wtk/Container.java
index b3bfa2f..66fd761 100644
--- a/wtk/src/org/apache/pivot/wtk/Container.java
+++ b/wtk/src/org/apache/pivot/wtk/Container.java
@@ -873,7 +873,8 @@
return;
}
if (!java.awt.EventQueue.isDispatchThread()) {
- throw new IllegalStateException("this method can only be called from the AWT event dispatch thread");
+ throw new IllegalStateException("this method can only be called from the AWT event dispatch thread"
+ + ", and not from \"" + threadName + "\"");
}
}
};