We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdb7608 commit 2e4719aCopy full SHA for 2e4719a
RxCocoa/Foundation/URLSession+Rx.swift
@@ -142,7 +142,7 @@ extension Reactive where Base: URLSession {
142
let interval = Date().timeIntervalSince(d ?? Date())
143
print(convertURLRequestToCurlCommand(request))
144
#if os(Linux)
145
- print(convertResponseToString(response, error.flatMap { $0 as NSError }, interval))
+ print(convertResponseToString(response, error.flatMap { $0 as? NSError }, interval))
146
#else
147
print(convertResponseToString(response, error.map { $0 as NSError }, interval))
148
#endif
0 commit comments