check scanner's error