diff --git a/doric-iOS/Pod/Classes/Loader/DoricMainBundleJSLoader.m b/doric-iOS/Pod/Classes/Loader/DoricMainBundleJSLoader.m index 6a6da103..8273d10b 100644 --- a/doric-iOS/Pod/Classes/Loader/DoricMainBundleJSLoader.m +++ b/doric-iOS/Pod/Classes/Loader/DoricMainBundleJSLoader.m @@ -32,7 +32,9 @@ - (BOOL)filter:(NSString *)source { NSError *error; NSString *jsContent = [NSString stringWithContentsOfFile:fullPath encoding:NSUTF8StringEncoding error:&error]; if (error) { - [ret setupError:[NSException new]]; + [ret setupError:[NSException exceptionWithName:@"Loading JS in Main bundle error" + reason:error.description + userInfo:error.userInfo]]; } else { [ret setupResult:jsContent]; }