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

Add better exception message when 0000-00-00 can't be converted #690

Closed
bgrainger opened this issue Sep 3, 2019 · 2 comments
Closed

Add better exception message when 0000-00-00 can't be converted #690

bgrainger opened this issue Sep 3, 2019 · 2 comments

Comments

@bgrainger
Copy link
Member

When InvalidCastException("Unable to convert MySQL date/time to System.DateTime.") is thrown, add extra text to the exception message (and/or a troubleshooting documentation page) that explains how to solve the problem.

throw new InvalidCastException("Unable to convert MySQL date/time to System.DateTime.");

From DapperLib/Dapper#1323.

@bgrainger
Copy link
Member Author

Fixed by #712.

@bgrainger
Copy link
Member Author

Fixed in 0.60.0.

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

No branches or pull requests

1 participant