check return value from parse_commit() in various functions