Skip to content

Commit e0a692d

Browse files
committed
rename error
1 parent 7cf89cf commit e0a692d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AWSLambdaEvents/Utils/DateWrappers.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ public struct RFC5322DateTimeCoding: Decodable, Sendable {
9393
}
9494
}
9595

96-
struct RFC5322DateError: Error {}
96+
struct RFC5322DateParsingError: Error {}
9797

9898
struct RFC5322DateStrategy: ParseStrategy {
9999
func parse(_ input: String) throws -> Date {
100100
guard let components = self.components(from: input) else {
101-
throw RFC5322DateError()
101+
throw RFC5322DateParsingError()
102102
}
103103
guard let date = components.date else {
104-
throw RFC5322DateError()
104+
throw RFC5322DateParsingError()
105105
}
106106
return date
107107
}

0 commit comments

Comments
 (0)