Add list of error messages to README #129
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I really like this library and appreciate all the work that has been put into it.
Currently I'm using it as part of an application that requires support for multiple languages. This means that using the message fields from errors directly isn't sufficient. What I need to do instead is look at what message is being generated and choose an appropriate string in the currently active language.
This means that I need to have a list of all possible error messages.
Crawling through the code to find them isn't difficult per se, however I think it would be more useful for people in similar situations to just look it up in the docs.
For a start, I've just added a list of all the messages in calls to the
error()
function, in the future it may be useful to add comments for what causes the error message (though I find it pretty obvious already)Hopefully this is something that will be useful to the project. If not, at least I have the list for my own reference now. 馃槃