Skip to content

Commit

Permalink
fix: ios build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
riderx committed Dec 26, 2022
1 parent 0834bb5 commit bf78984
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ios/Plugin/CapacitorUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ extension CustomError: LocalizedError {
latest.sessionKey = sessionKey
}
case let .failure(error):
print("\(self.TAG) Error getting Latest", response.value, error )
latest.message = "Error getting Latest \(response.value)"
print("\(self.TAG) Error getting Latest", response.value ?? "", error )
latest.message = "Error getting Latest \(String(describing: response.value))"
latest.error = "response_error"
}
semaphore.signal()
Expand Down Expand Up @@ -676,7 +676,7 @@ extension CustomError: LocalizedError {
if let error = response.value?.error {
getChannel.error = error
}
if let error = response.value?.message {
if let message = response.value?.message {
getChannel.message = message
}
if let channel = response.value?.channel {
Expand All @@ -686,7 +686,7 @@ extension CustomError: LocalizedError {
getChannel.allowSet = allowSet
}
case let .failure(error):
print("\(self.TAG) Error get Channel", response.value, error)
print("\(self.TAG) Error get Channel", response.value ?? "", error)
getChannel.message = "Error get Channel \(String(describing: response.value)))"
getChannel.error = "response_error"
}
Expand Down

0 comments on commit bf78984

Please sign in to comment.