Skip to content

Commit db2ae92

Browse files
committed
update
1 parent 93b5f89 commit db2ae92

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Package.resolved

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/replicate-kit-swift/error/ResponseError.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@ public struct ResponseError: Hashable, CustomStringConvertible, LocalizedError,
5252
/// Processing cases server cannot or will not process the request due to something that is perceived to be a client error
5353
/// 401 Unauthorized
5454
/// 402 Payment Required
55-
/// - Parameter error: Error
56-
/// - Returns: Error with a decription why server cannot or will not process the request if it managed to parse data response, standard status error or nil if requst was succesful
55+
/// - Parameters:
56+
/// - status: Status code
57+
/// - response: URLResponse
58+
/// - data: Received data
59+
/// - Returns: Error with a description why server cannot or will not process the request if it managed to parse data response, standard status error or nil if request was successful
5760
internal func errorFn(status: Int, _ response : URLResponse, data: Data?) -> Error?{
5861

5962
if (200...299).contains(status) { return nil }
@@ -70,6 +73,5 @@ internal func errorFn(status: Int, _ response : URLResponse, data: Data?) -> Er
7073
return error
7174
}
7275

73-
return Http.Errors.status(status, response, data)
74-
76+
return Http.Errors.status(status, response, data)
7577
}

0 commit comments

Comments
 (0)