better error message whent can't coerce to string
[org.ibex.core.git] / src / org / ibex / js / JS.java
index 9aa5606..de60d0c 100644 (file)
@@ -132,7 +132,7 @@ public class JS extends org.ibex.util.BalancedTree {
             if((int)d == d) return Integer.toString((int)d);
             return o.toString();
         }
-        throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "]");
+        throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "] to type String.");
     }
 
     // Instance Methods ////////////////////////////////////////////////////////////////////