- replace anyhow with thiserror

This commit is contained in:
w.pomp
2025-09-26 18:14:18 +02:00
parent 7ea0d1c093
commit 56680d88f4
6 changed files with 225 additions and 25 deletions
+14
View File
@@ -0,0 +1,14 @@
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("io error: {0}")]
IO(#[from] std::io::Error),
#[error("could not parse color: {0}")]
ColorParse(String),
#[error("colorcet error: {0}")]
ColorCet(#[from] colorcet::ColorcetError),
#[error("could not covert ColorMap into LinearGradient")]
Conversion
}