Anna-Team / AnnaDB

Developer-first database
Apache License 2.0
56 stars 4 forks source link

Query Error Handling Pointing #13

Open amaster507 opened 1 year ago

amaster507 commented 1 year ago

image

I think the error was trying to point to the test|... part of the string, but it did not point there successfully probably due to the query being parsed out and line separated. I expect this to point to the correct part of the string which can be seen if I follow the arrow up to the original query.

Furthermore, all I was missing was the ending pipe | which I have done quite often while working with this syntax. That specific error I believe could be parsed out better and almost know that a pipe is missing. This might even be able to use a regex noting that the pipes do not exist evenly

roman-right commented 1 year ago

Oh yes. This looks ugly. It needs better error handling. Thank you!