Handle input errors.