more explicit check for standard error message