catch parsing errors