Skip to content

Commit 5f6099e

Browse files
Update Sources/OpenAPIRuntime/Errors/RuntimeError.swift
Co-authored-by: Honza Dvorsky <honza@apple.com>
1 parent bcef906 commit 5f6099e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenAPIRuntime/Errors/RuntimeError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ internal enum RuntimeError: Error, CustomStringConvertible, LocalizedError, Pret
102102
return "User handler failed with error: \(underlyingError.localizedDescription)"
103103
case .unexpectedResponseStatus(let expectedStatus, let response):
104104
return "Unexpected response, expected status code: \(expectedStatus), response: \(response)"
105-
case .unexpectedResponseBody(let expectedContentType, let response):
106-
return "Unexpected response body, expected content type: \(expectedContentType), response: \(response)"
105+
case .unexpectedResponseBody(let expectedContentType, let body):
106+
return "Unexpected response body, expected content type: \(expectedContentType), body: \(body)"
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)