Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
span: improve invalid units error message
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
- Loading branch information