From 5a956950bd64d9365b66a69a220a1b199aad7e7b Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Sat, 7 Mar 2020 10:17:44 +0800 Subject: [PATCH] iOS:js error format --- doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m b/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m index dc397d31..02d508a4 100644 --- a/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m +++ b/doric-iOS/Pod/Classes/Engine/DoricJSCoreExecutor.m @@ -38,7 +38,7 @@ - (instancetype)init { - (void)checkJSException { if (self.jsContext.exception) { - NSString *errMsg = [NSString stringWithFormat:@"%@ (line %@ in the generated bundle)\n/***StackTrace***/\n%@/***StackTrace***/", self.jsContext.exception, self.jsContext.exception[@"line"], self.jsContext.exception[@"stack"]]; + NSString *errMsg = [NSString stringWithFormat:@"%@ (line %@ in the generated bundle)\n/***StackTrace***/\n%@\n/***StackTrace***/", self.jsContext.exception, self.jsContext.exception[@"line"], self.jsContext.exception[@"stack"]]; @throw [[NSException alloc] initWithName:@"DoricJS" reason:errMsg userInfo:nil]; } }