mirror of https://github.com/Trivernis/nenv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
342 B
Rust
18 lines
342 B
Rust
2 years ago
|
use miette::Diagnostic;
|
||
|
use thiserror::Error;
|
||
|
|
||
|
use crate::repository::config::ConfigError;
|
||
|
|
||
|
pub type MapperResult<T> = Result<T, MapperError>;
|
||
|
|
||
|
#[derive(Error, Diagnostic, Debug)]
|
||
|
pub enum MapperError {
|
||
|
#[error("Config error: {0}")]
|
||
|
Config(
|
||
|
#[from]
|
||
|
#[source]
|
||
|
#[diagnostic_source]
|
||
|
ConfigError,
|
||
|
),
|
||
|
}
|