Skip to content

Commit

Permalink
fix: ios type
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Sep 19, 2022
1 parent b0a7705 commit be90fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ios/Plugin/CapacitorUpdaterPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ public class CapacitorUpdaterPlugin: CAPPlugin {
let res = try implementation.download(url: url!, version: version)
call.resolve(res.toJSON())
} catch {
print("\(self.implementation.TAG) Failed to download from: \(url ?? "") \(error.localizedDescription)")
print("\(self.implementation.TAG) Failed to download from: \(url!) \(error.localizedDescription)")
self.notifyListeners("downloadFailed", data: ["version": version])
call.reject("Failed to download from: \(url ?? "")", error.localizedDescription)
call.reject("Failed to download from: \(url!)", error.localizedDescription)
}
}

Expand Down

0 comments on commit be90fbe

Please sign in to comment.