Time out as network error

This commit is contained in:
Ivan Babkin 2018-10-19 17:37:45 +03:00
parent 83454dfef4
commit 2bccc006d7
3 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,8 @@
# Changelog
### 0.9.1
- **Update**: `DataRequest+Extensions` time out as network error
### 0.9.0
- **Update**: version update.

View File

@ -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"

View File

@ -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)