]> git.saurik.com Git - cycript.git/commitdiff
Display a useful message from JavaScript exceptions.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Jun 2012 10:42:10 +0000 (03:42 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 3 Jun 2012 10:42:10 +0000 (03:42 -0700)
Execute.cpp

index 13da50810584b9436456343f4197cbd0f8547f77..2cb03877c0741f7dcf4868821c8d54ae6e40ab1f 100644 (file)
@@ -1222,7 +1222,7 @@ const char *CYExecute(apr_pool_t *pool, CYUTF8String code) {
     }
 
     if (exception != NULL) { error:
-        result = exception;
+        result = CYCastJSValue(context, CYJSString(context, exception));
         exception = NULL;
     }