meridor / perspective-backend

Scalable multi-cloud management API and shell
Apache License 2.0
16 stars 6 forks source link

Humanize SQL parse error message #84

Closed vania-pooh closed 8 years ago

vania-pooh commented 8 years ago
Parse error: "mismatched input 'on' expecting {<EOF>, 'where', ';', ',', 'order', 'group', 'having', 'limit'}" near "[@27,123:124='on',<62>,1:123]" at 1:123

This should be something like:

Unexpected input "on" near "some text" (1:123). Valid symbols are: {<EOF>, "where", ...}