From af051f94cb46dbe54c6357f7ef144baadd20e85e Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 3 Jun 2012 03:42:10 -0700 Subject: [PATCH] Display a useful message from JavaScript exceptions. --- Execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2