diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index ec88733..bcee4ff 100644 --- a/src/error.rs +++ b/src/error.rs @@ -125,6 +125,15 @@ pub enum SubplotError { #[error("document has more than one template possibility")] AmbiguousTemplate, + /// Document does not support the requested template + /// + /// The document YAML metadata does not specify support for the + /// stated template. + /// + /// To fix, specify a template which is provided for in the document. + #[error("document lacks specified template support")] + TemplateSupportNotPresent, + /// Pandoc AST is not JSON /// /// Subplot acts as a Pandoc filter, and as part of that Pandoc |