lix-installer/src/error.rs

18 lines
407 B
Rust
Raw Normal View History

2022-09-26 21:05:28 +00:00
use std::path::PathBuf;
use crate::actions::ActionError;
2022-09-14 22:18:13 +00:00
2022-09-02 23:03:57 +00:00
#[derive(thiserror::Error, Debug)]
pub enum HarmonicError {
2022-09-26 21:05:28 +00:00
#[error("Error executing action")]
2022-09-26 21:07:53 +00:00
ActionError(
#[source]
#[from]
ActionError,
),
2022-09-26 21:05:28 +00:00
#[error("Recording install receipt")]
RecordingReceipt(PathBuf, #[source] std::io::Error),
#[error(transparent)]
SerializingReceipt(serde_json::Error),
2022-09-02 23:03:57 +00:00
}