Bail out if sync directory is deleted

This commit is contained in:
Gregory Schier
2025-11-19 13:42:48 -08:00
parent 0e98a3e498
commit bddc6e35a0
2 changed files with 9 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ use thiserror::Error;
pub enum Error {
#[error("Yaml error: {0}")]
YamlParseError(#[from] serde_yaml::Error),
#[error("Sync parse error: {0}")]
ParseError(String),
@@ -25,6 +25,9 @@ pub enum Error {
#[error("Invalid sync file: {0}")]
InvalidSyncFile(String),
#[error("Invalid sync directory: {0}")]
InvalidSyncDirectory(String),
#[error("Watch error: {0}")]
NotifyError(#[from] notify::Error),
}