pub fn error_contains(error: &ForgeError, substring: &str) -> bool
Check if an error message contains a substring.