diff --git a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m index 811ed62163..3582daffea 100644 --- a/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m +++ b/ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m @@ -1147,6 +1147,12 @@ + (void)handleConsoleOutputWithArgument:(NSArray *)arguments logLevel:(WXLogFlag if ([appMonitorHandler respondsToSelector:@selector(commitAppMonitorAlarm:monitorPoint:success:errorCode:errorMsg:arg:)]) { [appMonitorHandler commitAppMonitorAlarm:@"weex" monitorPoint:@"jswarning" success:NO errorCode:@"99999" errorMsg:string arg:[WXSDKEngine topInstance].pageName]; } + } else if(WXLogFlagError == logLevel) { + [WXExceptionUtils commitCriticalExceptionRT:[WXSDKEngine topInstance].instanceId + errCode:[NSString stringWithFormat:@"%d", WX_ERR_JS_EXECUTE] + function:@"" + exception:string + extParams:nil]; } WX_LOG(logLevel, @"%@", string); } else {