diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-15 17:34:08 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-15 17:34:08 +0300 |
commit | 80bd48f44c1ba6c5010f7d50fd9387b1c4424464 (patch) | |
tree | 94381a10bea6990ca5d017bb9067749f17ce614c /src/error.rs | |
parent | 0f3eeccc4403ddf27ad4e7cdffb8033dcab5f9cf (diff) | |
download | jt2-80bd48f44c1ba6c5010f7d50fd9387b1c4424464.tar.gz |
feat: add command to list current drafts
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 8db0991..36d8f07 100644 --- a/src/error.rs +++ b/src/error.rs @@ -97,4 +97,12 @@ pub enum JournalError { /// Failed to make a path relative to a directory. #[error("failed to make {0} relative to {1}: {2}")] RelativePath(PathBuf, PathBuf, std::path::StripPrefixError), + + /// Problem with glob pattern. + #[error("Error in glob pattern {0}: {1}")] + PatternError(String, #[source] glob::PatternError), + + /// Problem when matching glob pattern on actual files. + #[error("Failed to match glob pattern {0}: {1}")] + GlobError(String, #[source] glob::GlobError), } |