-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
If you look at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/139, Andrew and I spent time word smithing an error message for environment variable syntax. If we could add a just add a longer (multiline) and more helpful "Error Detail" output that follows the one-line error message we'd spend less time trying to get the one-liner "just right".
Some error output already does this. This issue is to make sure this facility wired through and available to all error emitters, including some way for emitters to analyze the code to provide "Did you mean ... ?" style output.
So not all errors would actually merit the additional detail. Probably the right way to do this is just to expand the error messages for parsing and validation where appropriate - changes would be needed in ModelParser, JSONParser and ModelValidatorImpl to generate the "Did you mean...?" info and pass it to the Messages call for a given error as well.