From: Jay Freeman (saurik) Date: Sun, 3 Jun 2012 10:42:10 +0000 (-0700) Subject: Display a useful message from JavaScript exceptions. X-Git-Tag: v0.9.455~30 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/af051f94cb46dbe54c6357f7ef144baadd20e85e?hp=5a6d4d25db388006fc37491a1253b4a102461a6f Display a useful message from JavaScript exceptions. --- diff --git a/Execute.cpp b/Execute.cpp index 13da508..2cb0387 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -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; }