From 6d99156bd954920f69413abc95180c0b7be4c18c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 10 May 2024 16:33:03 -0400 Subject: [PATCH] Include badly formatted date in error message --- Packages/Pachyderm/Sources/Pachyderm/Client.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/Pachyderm/Sources/Pachyderm/Client.swift b/Packages/Pachyderm/Sources/Pachyderm/Client.swift index 429d7c2bdf..8addd3995a 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Client.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Client.swift @@ -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)")) } })