print result errors to csv file