refactor: Switch to using miette for errors instead of anyhow (#198)

Switch to a better error crate that will allow setting help texts for
any error we want.
This commit is contained in:
Gerald Pinder 2024-07-05 21:55:43 -04:00 committed by GitHub
parent 784be9869a
commit 065fa193e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 364 additions and 143 deletions

View file

@ -1,10 +1,10 @@
use std::{borrow::Cow, path::PathBuf, process};
use anyhow::{bail, Result};
use blue_build_utils::syntax_highlighting::highlight_ser;
use colored::Colorize;
use indexmap::IndexMap;
use log::{error, trace, warn};
use miette::{bail, Result};
use serde::{Deserialize, Serialize};
use serde_yaml::Value;
use typed_builder::TypedBuilder;