-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index out of bounds
errors should show index
and bound
#9880
Comments
refs #9880 show index and bound in lots of `index out of bounds` errors
/cc @kaushalmodi now that PR was merged, there are still some remaining cases, eg: see also: compiler/vm.nim:424:26: errIndexOutOfBounds = "index out of bounds" |
That PR is really a nice and useful addition to the language! Can you work on those remaining cases? |
glad some ppl appreciate importance of helpful error messages, I certainly do (by helpful I mean in particular: shows relevant runtime/compiletime context such as variables involved). I'm busy with other PR's at the moment, until then, feel free to tackle some of these :) |
Made a PR here |
This was implemented. |
index out of bounds
errors should showindex
andbound
in error message; it would often save a lot of debugging timethe code needs to be updated in a number of places:
i suggest using a single routine to generate the error message, eg:
The text was updated successfully, but these errors were encountered: