Context
TOML parse errors come back as anyhow::Context strings. The toml crate supports span-aware errors (toml::de::Error::span()).
What to do
Replace the with_context("Failed to parse manifest") chain with explicit span extraction and a VerisimError::ManifestParse { path, line, col, msg } variant.
Acceptance
Context
TOML parse errors come back as
anyhow::Contextstrings. Thetomlcrate supports span-aware errors (toml::de::Error::span()).What to do
Replace the
with_context("Failed to parse manifest")chain with explicit span extraction and aVerisimError::ManifestParse { path, line, col, msg }variant.Acceptance