print out scanning errors if possible