mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-09 11:01:42 -04:00
* Making sub_path api for jobs harder to misuse * re-enable context menu options --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
23 lines
521 B
Rust
23 lines
521 B
Rust
use crate::{location::file_path_helper::FilePathError, util::error::FileIOError};
|
|
|
|
use std::path::Path;
|
|
|
|
use thiserror::Error;
|
|
|
|
pub mod hash;
|
|
pub mod validator_job;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum ValidatorError {
|
|
#[error("sub path not found: <path='{}'>", .0.display())]
|
|
SubPathNotFound(Box<Path>),
|
|
|
|
// Internal errors
|
|
#[error("database error: {0}")]
|
|
Database(#[from] prisma_client_rust::QueryError),
|
|
#[error(transparent)]
|
|
FilePath(#[from] FilePathError),
|
|
#[error(transparent)]
|
|
FileIO(#[from] FileIOError),
|
|
}
|