Skip to content

Commit cbe62bc

Browse files
committed
Update AsyncImageErrors.swift
1 parent a33a0db commit cbe62bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/openai-async-image-swiftui/enum/AsyncImageErrors.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ extension AsyncImageErrors: LocalizedError {
2828
return NSLocalizedString("Client not found. The URL might be invalid.", comment: "")
2929
case .returnedNoImages:
3030
return NSLocalizedString("The response did not contain any images.", comment: "")
31-
case .httpStatus(let status):
32-
return NSLocalizedString("HTTP status error: \(status).", comment: "")
31+
case .httpStatus(let description):
32+
return NSLocalizedString(description, comment: "")
3333
case .responseError(let error):
3434
return error.localizedDescription
3535
}

0 commit comments

Comments
 (0)