File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,9 +46,13 @@ - (BOOL) overrideSchemeTask: (id <WKURLSchemeTask>)urlSchemeTask {
4646
4747 [[[NSURLSession sharedSession ] dataTaskWithRequest: request completionHandler: ^(NSData *data, NSURLResponse *response, NSError *error) {
4848 if (error && (self.stoppedTasks == nil || ![self .stoppedTasks containsObject: urlSchemeTask])) {
49- NSLog (@" Proxy error: %@ " , error);
50- [urlSchemeTask didFailWithError: error];
51- return ;
49+ @try {
50+ NSLog (@" WebviewProxy error: %@ " , error);
51+ [urlSchemeTask didFailWithError: error];
52+ return ;
53+ } @catch (NSException *exception) {
54+ NSLog (@" WebViewProxy send error exception: %@ " , exception.debugDescription );
55+ }
5256 }
5357
5458 // set cookies to WKWebView
@@ -79,7 +83,7 @@ - (BOOL) overrideSchemeTask: (id <WKURLSchemeTask>)urlSchemeTask {
7983 NSLog (@" Task stopped %@ " , startPath);
8084 }
8185 } @catch (NSException *exception) {
82- NSLog (@" WebViewProxy error : %@ " , exception.debugDescription );
86+ NSLog (@" WebViewProxy send response exception : %@ " , exception.debugDescription );
8387 } @finally {
8488 // Cleanup
8589 [self .stoppedTasks removeObject: urlSchemeTask];
You can’t perform that action at this time.
0 commit comments