check for errors while printing to the tablewriter