summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs
index 36d8f07..04ba777 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -30,6 +30,10 @@ pub enum JournalError {
#[error("failed to rename journal entry {0} to {1}: {2}")]
RenameEntry(PathBuf, PathBuf, #[source] std::io::Error),
+ /// Failed to rename draft.
+ #[error("failed to remove draft {0}: {1}")]
+ RemoveDraft(PathBuf, #[source] std::io::Error),
+
/// Failed to write entry.
#[error("failed to create journal entry {0}: {1}")]
WriteEntry(PathBuf, #[source] std::io::Error),