pub fn error_contains(e: &LocatedError, s: &str) -> bool
Checks if an error message matches a substring.