teikalang / teika

MIT License
318 stars 7 forks source link

smol: improve error messages #194

Closed EduardoRFS closed 9 months ago

EduardoRFS commented 9 months ago

Goals

Slightly improved error messages and better locations.

Context

Currently Smol typing errors are triggered by "failwith", this makes them not structured at all, additionally they lack locations. This PR adds both, a proper exception for errors and print the locations.