Add path context to invalid TOML config errors by clockwork-labs-bot · Pull Request #4815 · clockworklabs/SpacetimeDB

Fixes #4749.

Summary

The old report was filed against a spacetime.toml path from 1.11-era CLI flows. On current master, the shared TOML config parser already returns parse failures, but the top-level error does not say which config file was invalid.

This patch makes the shared TOML config loader add file-path context while preserving the underlying TOML span details, so users get an error like invalid TOML syntax in ... followed by the parser's line and column information.

Testing

  • cargo test -p spacetimedb-core parse_config_reports_the_invalid_file_path -- --nocapture