diff options
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 0057f37..f988c86 100644 --- a/src/error.rs +++ b/src/error.rs @@ -6,6 +6,14 @@ use thiserror::Error; /// Define all the kinds of errors any part of this crate can return. #[derive(Debug, Error)] pub enum SubplotError { + /// Subplot could not find a file named as a bindings file. + #[error("binding file could not be found: {0}: {1}")] + BindingsFileNotFound(PathBuf, std::io::Error), + + /// Subplot could not find a file named as a functions file. + #[error("functions file could not be found: {0}: {1}")] + FunctionsFileNotFound(PathBuf, anyhow::Error), + /// The simple pattern contains a stray { or }. #[error("simple pattern contains a stray {{ or }}")] StrayBraceInSimplePattern(String), |