summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2022-10-22 08:59:48 +0000
committerDaniel Silverstone <dsilvers+gitlab@digital-scurf.org>2022-10-22 08:59:48 +0000
commit81e985cc026d67e3d506d485b3bf013bfd82987e (patch)
tree13cbc60820d24ec6f797d839f3e40ea92d67ed91 /src/error.rs
parent18dedca71451dab31f43a0725277308471d32dfe (diff)
parentfd854872ce86f9ae5d07ec59e598fe85a8607d5c (diff)
downloadsubplot-81e985cc026d67e3d506d485b3bf013bfd82987e.tar.gz
Merge branch 'liw/relative' into 'main'
fix running docgen on a subplot in a different directory See merge request subplot/subplot!293
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 53eccad..a729bf0 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -321,6 +321,14 @@ pub enum SubplotError {
/// String formatting failed.
#[error("Failed in string formattiing: {0}")]
StringFormat(std::fmt::Error),
+
+ /// Input file could not be read.
+ #[error("Failed to read input file {0}")]
+ InputFileUnreadable(PathBuf, #[source] std::io::Error),
+
+ /// Input file mtime lookup.
+ #[error("Failed to get modification time of {0}")]
+ InputFileMtime(PathBuf, #[source] std::io::Error),
}
impl SubplotError {