blob: 3b3f57350f596883b1acf9a68437370da76df2ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std::path::PathBuf;
use thiserror::Error;
/// Define all the kinds of errors any part of this crate can return.
#[derive(Debug, Error)]
pub enum ObnamError {
#[error("Can't find backup '{0}'")]
UnknownGeneration(String),
#[error("Generation has more than one file with the name {0}")]
TooManyFiles(PathBuf),
}
|