canonical/multipass

Handle yaml-cpp exceptions from a cloud-init config better

Open

#646 geöffnet am 28. Feb. 2019

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (1 zugewiesene Person)C++ (634 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (6.956 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 16T 2h) (50 gemergte PRs in 30 T)

Beschreibung

Currently, we just bubble up any yaml-cpp exceptions back to the client, but the error message is out of context of what is really wrong. For example, if a user creates a cloud-init config with incorrect yaml, an error could look like: launch failed: operator[] call on a scalar As can be seen, it's not clear where the error is.

We should catch the yaml-cpp exceptions and make it a more meaningful message to pass to the client and user.

Contributor Guide