pypy / pypy.org

Sources for website at https://www.pypy.org
33 stars 11 forks source link

Error Message Style Guides of Various Languages | PyPy #46

Closed utterances-bot closed 1 year ago

utterances-bot commented 2 years ago

Error Message Style Guides of Various Languages | PyPy

https://www.pypy.org/posts/2021/12/error-message-style-guides.html

aroberge commented 2 years ago

I'd be curious to hear what you think of the approach I used in friendly/friendly-traceback where a user can either ask interactively, or get all the information at once, about what() a particular error means, why() is it generated, where() exactly it occurs with information about the value of various objects found at the location of the error.

Current examples for SyntaxErrors can be found at https://friendly-traceback.github.io/docs/syntax_tracebacks_en_3.9.html and for various runtime errors at https://friendly-traceback.github.io/docs/tracebacks_en_3.9.html

Based on the information you gathered, I might have to rephrase all the "Did you mean ..." hints.