-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Timestamp adds 1 day panic #90
Comments
Not sure why we have this check .. |
The panic is occurring here because you're using the |
The error message here is pretty abysmal though. So we should improve that. |
Previously, we would report a range error when trying to use units of days or greater in a span when adding to a `Timestamp`. But this error doesn't really do a good job of explaining anything. It was a hold-over from the days where I was using many different error types and it was difficult to improve messages on an ad hoc basis. But now, we can just write a message. The error message doesn't explain *why* days-and-greater are banned, but it's hard to fit all of that into an error. At some point, we just have to rely on folks reading the docs. Closes #90
Previously, we would report a range error when trying to use units of days or greater in a span when adding to a `Timestamp`. But this error doesn't really do a good job of explaining anything. It was a hold-over from the days where I was using many different error types and it was difficult to improve messages on an ad hoc basis. But now, we can just write a message. The error message doesn't explain *why* days-and-greater are banned, but it's hard to fit all of that into an error. At some point, we just have to rely on folks reading the docs. Closes #90
panic:
Code:
The text was updated successfully, but these errors were encountered: