Files
spacedrive/core/src/object/validation/mod.rs
T
Ericson "Fogo" SoaresandBrendan Allan 40fa435368 [ENG-768 / ENG-769] Regen thumbnails / Generate checksums (#983)
* Making sub_path api for jobs harder to misuse

* re-enable context menu options

---------

Co-authored-by: Brendan Allan <brendonovich@outlook.com>
2023-06-21 12:55:19 +00:00

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),
}