better reporting on parsing error