parsing errors: print line number and invalid string

Being more clear with parsing errors.