From 2bccc006d7d8dccb10cc9a6aeb0e875daad1ba07 Mon Sep 17 00:00:00 2001 From: Ivan Babkin Date: Fri, 19 Oct 2018 17:37:45 +0300 Subject: [PATCH] Time out as network error --- CHANGELOG.md | 3 +++ LeadKit.podspec | 2 +- Sources/Extensions/Alamofire/DataRequest+Extensions.swift | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c844db49..53c64147 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### 0.9.1 +- **Update**: `DataRequest+Extensions` time out as network error + ### 0.9.0 - **Update**: version update. diff --git a/LeadKit.podspec b/LeadKit.podspec index 7e56598c..fa27668b 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -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" diff --git a/Sources/Extensions/Alamofire/DataRequest+Extensions.swift b/Sources/Extensions/Alamofire/DataRequest+Extensions.swift index 47eef191..a7273468 100644 --- a/Sources/Extensions/Alamofire/DataRequest+Extensions.swift +++ b/Sources/Extensions/Alamofire/DataRequest+Extensions.swift @@ -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)