Skip to content
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.

Commit

Permalink
fix(ios): Add missing request error handling
Browse files Browse the repository at this point in the history
resolves #224
  • Loading branch information
mrahn24 committed Jan 27, 2022
1 parent 3aca516 commit da0742f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/Plugin/HttpRequestHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ class HttpRequestHandler {
let task = urlSession.dataTask(with: urlRequest) { (data, response, error) in
urlSession.invalidateAndCancel();
if error != nil {
CAPLog.print("Error on request", String(describing: data), String(describing: response), String(describing: error))
call.reject("Error", "REQUEST", error, [:])
return
}

Expand Down

0 comments on commit da0742f

Please sign in to comment.