Invert error check logic to actually check for errors.