Include badly formatted date in error message

This commit is contained in:
Shadowfacts 2024-05-10 16:33:03 -04:00
parent ca764811ed
commit 6d99156bd9
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public struct Client: Sendable {
} else if let date = iso8601.date(from: str) {
return date
} else {
throw DecodingError.typeMismatch(Date.self, .init(codingPath: container.codingPath, debugDescription: "unexpected date format"))
throw DecodingError.typeMismatch(Date.self, .init(codingPath: container.codingPath, debugDescription: "unexpected date format: \(str)"))
}
})