handle failed tables and show proper error messages