Time out as network error
This commit is contained in:
parent
83454dfef4
commit
2bccc006d7
|
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
### 0.9.1
|
||||
- **Update**: `DataRequest+Extensions` time out as network error
|
||||
|
||||
### 0.9.0
|
||||
- **Update**: version update.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
Pod::Spec.new do |s|
|
||||
s.name = "LeadKit"
|
||||
s.version = "0.9.0"
|
||||
s.version = "0.9.1"
|
||||
s.summary = "iOS framework with a bunch of tools for rapid development"
|
||||
s.homepage = "https://github.com/TouchInstinct/LeadKit"
|
||||
s.license = "Apache License, Version 2.0"
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ public extension Reactive where Base: DataRequest {
|
|||
switch $0 {
|
||||
case let urlError as URLError:
|
||||
switch urlError.code {
|
||||
case .notConnectedToInternet, .timedOut:
|
||||
case .notConnectedToInternet:
|
||||
throw RequestError.noConnection
|
||||
default:
|
||||
throw RequestError.network(error: urlError)
|
||||
|
|
|
|||
Loading…
Reference in New Issue