fix error printing in reindex