You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however, the error messages leave something to be desired. For instance, if I pass in 2022-01-01T25:00:00 I get a "trailing input" error instead of an "out of range" error since I'm only able to see that there was an error, not what kind of error I got. If ParseErrorKind were public, it looks like I could write code that produced better error messages on the command line. Would this be possible (or acceptable as a PR?)
The text was updated successfully, but these errors were encountered:
I'm parsing dates from CLI args. I'd like to accept both
%Y-%m-d
and%Y-%m-%dT%H:%M:%S
formats. I can currently do that with this code:however, the error messages leave something to be desired. For instance, if I pass in
2022-01-01T25:00:00
I get a "trailing input" error instead of an "out of range" error since I'm only able to see that there was an error, not what kind of error I got. IfParseErrorKind
were public, it looks like I could write code that produced better error messages on the command line. Would this be possible (or acceptable as a PR?)The text was updated successfully, but these errors were encountered: