summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
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 05bb74d..199d1e4 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -26,6 +26,14 @@ pub enum JournalError {
#[error("failed to create journal directory {0}")]
CreateDirectory(PathBuf, #[source] std::io::Error),
+ /// Failed to rename entry when finishing it.
+ #[error("failed to rename journal entry {0} to {1}: {2}")]
+ RenameEntry(PathBuf, PathBuf, #[source] std::io::Error),
+
+ /// Failed to write entry.
+ #[error("failed to create journal entry {0}: {1}")]
+ WriteEntry(PathBuf, #[source] std::io::Error),
+
/// To many drafts.
#[error("there are already {0} drafts in {1}, can't create more")]
TooManyDrafts(usize, PathBuf),