1use thiserror::Error;
4
5#[derive(Error, Debug)]
7pub enum Error {
8 #[error("{0}")]
9 Descriptive(String),
10 #[error("IO error: {0}")]
11 IO(#[from] std::io::Error),
12 #[cfg(feature = "manifest")]
13 #[cfg_attr(docsrs, doc(cfg(feature = "manifest")))]
14 #[error("StripPrefixError")]
15 StripPrefixError(#[from] std::path::StripPrefixError),
16 #[cfg(feature = "manifest")]
17 #[cfg_attr(docsrs, doc(cfg(feature = "manifest")))]
18 #[error("toml_edit error: {0}")]
19 TomlEdit(#[from] toml_edit::TomlError),
20}