Skip to content

Commit

Permalink
post-rebase fix and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Jan 7, 2025
1 parent 333303e commit e173fcb
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions FirebaseRemoteConfig/SwiftNew/ConfigRealtime.swift
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,13 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
evaluateStreamResponse(response)
}
} catch {
let wrappedError = NSError(domain: RemoteConfigUpdateErrorDomain,
code: RemoteConfigUpdateError.messageInvalid.rawValue,
userInfo: [
NSLocalizedDescriptionKey: "Unable to parse ConfigUpdate. \(strData)",
NSUnderlyingErrorKey: error,
])
let wrappedError =
NSError(domain: ConfigConstants.RemoteConfigUpdateErrorDomain,
code: RemoteConfigUpdateError.messageInvalid.rawValue,
userInfo: [
NSLocalizedDescriptionKey: "Unable to parse ConfigUpdate. \(strData)",
NSUnderlyingErrorKey: error,
])
propagateErrors(wrappedError)
return
}
Expand All @@ -524,11 +525,12 @@ class ConfigRealtime: NSObject, URLSessionDataDelegate {
}
if isRealtimeDisabled {
pauseRealtimeStream()
let error = NSError(domain: ConfigConstants.RemoteConfigUpdateErrorDomain,
code: RemoteConfigUpdateError.unavailable.rawValue,
userInfo: [
NSLocalizedDescriptionKey: "The server is temporarily unavailable. Try again in a few minutes.",
])
let error =
NSError(domain: ConfigConstants.RemoteConfigUpdateErrorDomain,
code: RemoteConfigUpdateError.unavailable.rawValue,
userInfo: [
NSLocalizedDescriptionKey: "The server is temporarily unavailable. Try again in a few minutes.",
])
propagateErrors(error)
} else {
let clientTemplateVersion = Int(configFetch.templateVersionNumber) ?? 0
Expand Down

0 comments on commit e173fcb

Please sign in to comment.