commit | c39346c42d85d51f4f9f6bb5e4d5780c76596fcf | [log] [tgz] |
---|---|---|
author | Yaneury Fermin <yaneury@google.com> | Wed Jun 22 22:15:56 2022 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jun 22 22:15:56 2022 +0000 |
tree | 006db217e495ebe689545799958a18ad0c93ead3 | |
parent | 5e0789f06164b03f738cdd69583e53c06e23e061 [diff] |
[realm_builder] Format ErrorList messages This CL makes the format for cm_fild_analyzer::error::ErrorList structured, helping it be more readable for users. It turns: ``` [98805.927319][18733956][18733958][realm_builder_server] WARN: unable to replace realm decl: a component manifest failed validation: ErrorList { errs: [InvalidField(DeclField { decl: "ExposeProtocol", field: "source_name" }), InvalidField(DeclField { decl: "ExposeProtocol", field: "target_name" })] } ``` To: ``` [00060.285693][50201][50203][realm_builder_server] WARN: The constructed component declaration is invalid. Please fix all the listed errors: 1. "secho_server" is referenced in ExposeProtocol.source but it does not appear in children. Declare one in the `children` section of the component declaration with the name "secho_server" in order to reference it. 2. Field `target` for ExposeProtocol is invalid. 3. Field `source_name` is missing for ExposeProtocol decl. Add this field to the component declaration. For a reference as to how component declarations are authored, see https://fuchsia.dev/go/components/declaration. method=Realm.ReplaceRealmDecl ``` Fixed: 100731 Change-Id: I4b8659ca66586fa32bcd34f5a1eeadcdeac16dd6 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/689505 Commit-Queue: Yaneury Fermin <yaneury@google.com> Reviewed-by: Gary Bressler <geb@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.