pub fn mark_as_error<E: Display>(err: &E, blame: Option<Blame>)
Marks the current span as an error with the given error message and optional blame.