brew error checking