add a column "error" to output file.