Page MenuHomePhabricator

Invalid yaml in horizon hiera editor results in confusing error message
Closed, ResolvedPublic

Description

While attempting to edit hiera yaml via the Horizon interface, I had an invalid extra space in my yaml. The error message given to me by Horizon when saving the form was:

Danger: There was an error submitting the form. Please try again.
11:51:27 and no hiera is saved

Which made me assume there was a bug with Horizon. It'd be nice to have some kind of useful 'invalid yaml syntax' error insteed.

Event Timeline

Change 766110 had a related patch set uploaded (by Majavah; author: Majavah):

[openstack/horizon/wmf-puppet-dashboard@main] Show a better error message on YAML parse failure

https://gerrit.wikimedia.org/r/766110

taavi subscribed.

The PS above updates the error to look like this:

image.png (181×320 px, 15 KB)

Change 766110 merged by Majavah:

[openstack/horizon/wmf-puppet-dashboard@main] Show a better error message on YAML parse failure

https://gerrit.wikimedia.org/r/766110