cylc-flow
cylc-flow copied to clipboard
cfgspec: add link to cylc-doc entry in error messages
For value-error type ParsecErrors it would be helpful to include a link to the documentation for the configuration that was mis-configured to save the user having to dig through the docs to find it.
Pull requests welcome!
Do-able, the main issue is passing the corresponding item from the SPEC into the exception.
This commit is enough to derive the URL from the SPEC:
https://github.com/oliver-sanders/cylc-flow/pull/new/docs-url
Any reason not to post that commit as a PR?
Will look at this post 8.0.0 as it would require re-working exceptions so isn't a small change.
Blocked by #4867