Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upType mismatch errors can be almost impossible to find through error messages #696
Comments
added a commit
that referenced
this issue
Feb 13, 2017
sgrif
referenced this issue
Feb 13, 2017
Merged
Provide a more helpful error message when to few bytes were received #697
added a commit
that referenced
this issue
Feb 13, 2017
sgrif
closed this
in
#697
Feb 15, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mbr commentedFeb 13, 2017
Have a look at the following (almost) minimal example program:
https://gist.github.com/mbr/78fabb54480549ac89ef8c98d9c186c6
The issue here is that a BigInt is used in the
table!macro call where there should be anInteger(due to how the SQL migration is setup. Also,User.idneeds to be corrected to i32).The resulting error message (UnexpectedEOF) makes this not that uncommon error very cryptic. Returning a better error might improved usability by quite a bit.