improve an error message in StructureParser