canonical/multipass

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

Open

#646 aberto em 28 de fev. de 2019

Ver no GitHub
 (4 comments) (0 reactions) (1 assignee)C++ (634 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (6.956 stars)
Métricas de merge de PR
 (Mesclagem média 16d 2h) (50 fundiu PRs em 30d)

Description

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.

Guia do colaborador