canonical/multipass

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

Open

#646 建立於 2019年2月28日

在 GitHub 查看
 (4 留言) (0 反應) (1 負責人)C++ (634 fork)batch import
enhancementgood first issue

倉庫指標

Star
 (6,956 star)
PR 合併指標
 (平均合併 16天 2小時) (30 天內合併 50 個 PR)

描述

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.

貢獻者指南