Skip to content

Commit e8f942e

Browse files
committed
Chemkin read: Tweak error logging. Report the reaction line.
Makes debugging easier if it reports the full reaction string. (At this point in the code 'reaction' is partially read)
1 parent df834ea commit e8f942e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rmgpy/chemkin.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _read_kinetics_reaction(line, species_dict, Aunits, Aunits_surf, Eunits):
397397
# this identifies reactions like 'H+H+M=H2+M' as opposed to 'H+H(+M)=H2(+M)' as identified above
398398
third_body = True
399399
elif reactant not in species_dict:
400-
raise ChemkinError('Unexpected reactant "{0}" in reaction {1}.'.format(reactant, reaction))
400+
raise ChemkinError('Unexpected reactant "{0}" in reaction line {1}.'.format(reactant, line))
401401
else:
402402
reactant_species = species_dict[reactant]
403403
if not reactant_species.reactive:

0 commit comments

Comments
 (0)