Skip to content

Commit

Permalink
Changed missingResponse error to missingHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
sxg committed Mar 15, 2019
1 parent d6ecadd commit 31cd00f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Source/DarkSkyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ open class DarkSkyClient : NSObject {
return
}
guard let response = optResponse as? HTTPURLResponse else {
completionHandler(Result.failure(ForecastIOError.missingResponse))
completionHandler(Result.failure(ForecastIOError.missingHeaders))
return
}

Expand Down
4 changes: 2 additions & 2 deletions Source/ForecastIOError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ public enum ForecastIOError: Error {
/// Error due to missing data.
case missingData

/// Error due to missing response.
case missingResponse
/// Error due to missing HTTP(S) headers.
case missingHeaders

/// Error due to unknown cause.
case unexpectedError
Expand Down

0 comments on commit 31cd00f

Please sign in to comment.