-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Notifications: improve copy on error messages #11062
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
Conversation
This validation should eventually happen at the Read the Docs config file. We are not there, but at least we are giving a better error message to users. Closes #8352
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for going through these! I've tuned the copy more with additions. A few broad notes:
- Some of the headers might still be tuned. For example, I noted some headers were
Invalid configuration
while the error noted missing values, and a more specific header could be used instead. - We have a fair amount of existing copy that interchangeable used
config file
andconfiguration file
, I think the latter is preferred for clarity - There are some conflicts between the terms
config
andoption
. To me,option
is a single key in a configuration file andconfiguration
refers to the whole file.
Co-authored-by: Anthony <[email protected]>
@agjohnson thanks for the review! I took most of your suggestions 💯 . There are a few that aren't marked as resolved. Please, take a final look at them if you have time. |
Getting the classname doesn't work on templates, tho:
🤔 |
``` In [4]: n.get_message().get_rendered_body() Out[4]: '\n\n\nConfig validation error in <code></code>.\nExpected a list, got type <code>int</code> (<code>422</code>).' ```
I create a simple template filter to be able to render the class name for now: |
Yeah, I thought the same here as you. Annoying that underscore attributes are off limits, but I'm not surprised Django templates get in our way here. |
This is not perfect and there is still more work to do here. However, this is another good iteration in the process.
Closes #10985