1
2
3
4
5
6
7
8
9
10
#[derive(Debug, thiserror::Error)]
/// Errors that can occur when rendering a Liquid JSON template.
pub enum Error {
    /// Thrown when the data provided to render functions isn't a Key/Value map.
    #[error("Invalid context passed to template. Expected a map, got {0:?}")]
    InvalidContext(serde_json::Value),
    /// Passed through from the Liquid library.
    #[error(transparent)]
    LiquidError(#[from] liquid::Error),
}