Skip to content

Commit

Permalink
allow catch all exceptions (microsoft#11498)
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire authored May 20, 2022
1 parent a679943 commit 69aaf03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/react_native/ios/OnnxruntimeModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ @implementation OnnxruntimeModule
@try {
NSDictionary *resultMap = [self loadModel:modelPath options:options];
resolve(resultMap);
} @catch (NSException *exception) {
} @catch (...) {
reject(@"onnxruntime", @"can't load model", nil);
}
}
Expand All @@ -66,7 +66,7 @@ @implementation OnnxruntimeModule
@try {
NSDictionary *resultMap = [self run:url input:input output:output options:options];
resolve(resultMap);
} @catch (NSException *exception) {
} @catch (...) {
reject(@"onnxruntime", @"can't run model", nil);
}
}
Expand Down

0 comments on commit 69aaf03

Please sign in to comment.