2002/10/03 23:45:58
[org.ibex.core.git] / src / org / xwt / Proxy.java
index 4ff75b8..83950aa 100644 (file)
@@ -125,8 +125,14 @@ public class Proxy {
                 Log.log(Platform.class, "WPAD detection failed due to:");
                 if (e instanceof EcmaError) Log.log(HTTP.class, ((EcmaError)e).getMessage() + " at " +
                                                     ((EcmaError)e).getSourceName() + ":" + ((EcmaError)e).getLineNumber());
-                else if (e instanceof JSObject)
-                   XWT.recursivePrintObject.call(Context.enter(), null, null, new Object[] { e });
+                else if (e instanceof JavaScriptException) {
+                   try {
+                       XWT.recursivePrintObject.call(Context.enter(), null, null, new Object[] {
+                           ((JavaScriptException)e).getValue() });
+                   } catch (Exception e2) {
+                       Log.log(Platform.class, e);
+                   }
+               }
                 else Log.log(Platform.class, e);
             }
             return null;