1
2
3
4
5
6
7
8
9
10
11
12
13
// Authors: Robert Lopez

/// Represents any `Error` as a readable error strings
#[derive(Debug)]
pub struct WasmCssError(pub String);

impl std::fmt::Display for WasmCssError {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        writeln!(f, "Error: {}", self.0)
    }
}

impl std::error::Error for WasmCssError {}