Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return error if date not understood #80

Open
mvaragnat opened this issue Jun 11, 2016 · 2 comments
Open

Return error if date not understood #80

mvaragnat opened this issue Jun 11, 2016 · 2 comments

Comments

@mvaragnat
Copy link

Currently if the input is garbage or incorrect, the parser returns the current Date. I think it'd be better to return an error message like "Invalid input" so that it's easy to catch.

@sundeepgupta
Copy link

Or how about return null

@alexgorbatchev
Copy link

No error state feels like a pretty big issue to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants