Skip to main content

ephemeris_documents/error/
toml.rs

1//! Errors from TOML documents.
2
3/// Error returned while rendering or reconciling a TOML document.
4#[derive(Debug, thiserror::Error)]
5pub enum TomlError {
6    /// A TOML document's root value is not a table.
7    #[error("TOML root value is not a table")]
8    RootNotTable,
9    /// `toml_edit` failed to parse a document.
10    #[error("invalid TOML")]
11    Parse {
12        /// The underlying parse error.
13        #[source]
14        source: Box<toml_edit::TomlError>,
15    },
16}