Stop printing type error context when reaching "while defining..." #1336
Labels
C-Low Hanging Fruit
Ideal issue for new contributors.
L-Error reporting
Reporting language or runtime errors to the player.
S-Nice to have
The bug fix or feature would be nice but doesn't currently have much negative impact.
Z-Feature
A new feature to be added to the game.
When checking a file full of definitions, technically all the definitions are joined by (possibly implicit) semicolons. So when you get a type error in a definition, it currently prints something like
This is obviously ridiculous and provides no useful information. We should stop printing the context as soon as we print out a "While checking the definition of ..." since those can only occur at the top level, and the combination of the line and column info plus the name of the function is plenty to uniquely identify the location of the error.
Related: #1314, #1297
The text was updated successfully, but these errors were encountered: