You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking into this, but the only error message that can really "bubble up" is this: data did not match any variant of untagged enum Crd
There seems to be an open PR for the serde repo (serde-rs/serde#1544) that has not been merged yet, but it would solve this issue as well. The only other solution that I can think of for the moment is to manually parse the YAML file.
The only other solution that I can think of for the moment is to manually parse the YAML file.
Nice find! This seems like something the upstream de-serializing library should report errors back on and not something we'd want to do extra work by do an additional yaml parsing. Can keep an eye on that PR!
Given a test yaml that looks like:
and attempting to run it:
Note that the
keep_running
key should bekeepRunning
. The CRD key error isn't bubbled up from the underlyingread_manifest
bottlerocket-test-system/cli/src/run_file.rs
Line 17 in e4c6d22
Still new to rust, but it would be great if a more descriptive error was returned.
The text was updated successfully, but these errors were encountered: