Skip to content

Commit 4099193

Browse files
committed
Change valueNotFound to keyNotFound
1 parent 5068a6d commit 4099193

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/HTTPHeaders/HTTPHeader.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public struct HTTPHeader<T> {
1515

1616
public func parse(from response: HTTPURLResponse) throws -> T {
1717
guard let value = response.value(forHTTPHeaderField: field) else {
18-
throw ParsingError.valueNotFound(field: field)
18+
throw ParsingError.keyNotFound(field: field)
1919
}
2020
return try parse(value)
2121
}
@@ -35,7 +35,7 @@ public struct HTTPHeader<T> {
3535
}
3636

3737
public enum ParsingError: Error {
38-
case valueNotFound(field: String)
38+
case keyNotFound(field: String)
3939
case typeMismatch(field: String, value: String, type: Any.Type)
4040
}
4141
}

0 commit comments

Comments
 (0)