print table content on error message