// Authors: Robert Lopez
/// Represents any `Error` as a list of readable error strings
#[derive(Debug)]
pub struct WasmCssError(pub Vec<String>);
impl std::fmt::Display for WasmCssError {
fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
writeln!(f, "Errors:");
for error in self.0.iter() {
writeln!(f, "{error}");
}
Ok(())
}
}
impl std::error::Error for WasmCssError {}