diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-10-20 18:16:42 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-21 20:05:54 +0300 |
commit | bc6ceda21f2b616d6bfedd9b5e2136e3b7b47e8d (patch) | |
tree | 15329e9300d3a8a74dcf3f498c78559355892a38 /src/error.rs | |
parent | 18dedca71451dab31f43a0725277308471d32dfe (diff) | |
download | subplot-bc6ceda21f2b616d6bfedd9b5e2136e3b7b47e8d.tar.gz |
fix: say for which file lookup of input file mtime fails
Sponsored-by: author
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 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 { |