pub struct ParseWarning {
pub path: PathBuf,
pub error: String,
}Expand description
A non-fatal warning emitted while loading skills — a single file failed to parse, but the rest of the directory was loaded successfully.
Surfaced on ResolvedRegistry::parse_warnings so downstream
binaries can render warnings in their boot summary. Operators
previously had to set up tracing-subscriber filters to see these;
the structured surface makes them visible without log plumbing.
Lands in 0.3.37 in response to an operator hitting an unquoted
colon in a description (First clause: second clause) — PyYAML
raised mapping values are not allowed here and the loader
silently skipped the file. 25-minute debug session later, the
operator switched to a folded scalar. The lesson: silent skip is
the worst failure mode for a new authoring surface.
Fields§
§path: PathBufThe file that failed to load.
error: StringHuman-readable description of why it failed.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more