Error messages: Include argument that caused error #3219
Unanswered
steventilator
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When an invalid interval is passed to functions that require an
Interval
(likeeachMonthOfInterval()
), the following error is thrown:Would it be possible to include the faulty interval in the error message? This would help a lot while debugging.
I'm not sure whether other functions of
date-fns
include the faulty arguments in the error messages, but if they don't we might want to think about including them there as well.Beta Was this translation helpful? Give feedback.
All reactions