config_parse
Diagnostic `nanook::config::parse`
Summary
config parse error: {0}
Help
check TOML syntax and that field types match the schema
Details
When this fires
ConfigError::Parse is what comes out of crates/nanook-core/src/config/load.rs when facet-toml rejects nanook.toml. That covers true syntax errors (a stray bracket, an unterminated string), unknown fields on #[facet(deny_unknown_fields)] structs like Agent and Channel, and type mismatches at the deserialization layer. The diagnostic carries the source span so the offending line gets underlined when rendered. Triggered by nanook check and nanook run.
What to check
For unknown-field errors, compare against the schema in crates/nanook-core/src/config/. Typos are the usual culprit (alert vs alerts, dur vs cooldown). Remember [[collectors]] is an array of tables, [agent] is a single table.