blaze / datashape

Language defining a data description protocol
BSD 2-Clause "Simplified" License
183 stars 65 forks source link

datashape syntax errors don't point out the issues as well as they could #181

Open llllllllll opened 8 years ago

llllllllll commented 8 years ago

@ACampbell22 ran into an issue with a datashape synta an error and was confused what the issue was, I think we should look into improving the error handling.

a-campbell commented 8 years ago

I passed a long datashape string with typo in it (in64 instead of int64) and was presented with the error:

DataShapeSyntaxError: Expected the datashape of the field

With a very long datashape string, this was hard to debug. Would have been nifty if the error had said something like:

DataShapeSyntaxError: Unknown datashape in64