Open PhillypHenning opened 2 years ago
@PhillypHenning is this done?
if not, can you add details around what is done today (v2) and what will be done to enhance it?
Sure -
The lookup function has been added A single lookup message has been added in the docs.json
TL;DR
I understand that the idea is to keep all error messages in the dictionary. When the error case is hit in the code, - it will lookup the error message from the json file and output that to the user. We'll also render this list of error messages in the docs.
What are the benefits of duplicating all the error messages in the docs? Do we also plan to provide a link from the code to the respective docs URL#code_num or something? Will it link to the same error that was already output to the user in the console?
It wouldn't be duplication. We'd take advantage of a centralized file to keep logging messages in. Keeping them generic means that they can be used in more then one way.
TODO