feat:fix loading error cannot be thrown
This commit is contained in:
@@ -63,6 +63,12 @@ - (void)addJSLoader:(id <DoricLoaderProtocol>)loader {
|
||||
*stop = YES;
|
||||
}
|
||||
}];
|
||||
if (!ret) {
|
||||
ret = [DoricAsyncResult new];
|
||||
[ret setupError:[NSException exceptionWithName:@"LoadingError"
|
||||
reason:[NSString stringWithFormat:@"Cannot find JS Loader for %@", source]
|
||||
userInfo:nil]];
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
@end
|
||||
|
Reference in New Issue
Block a user