throw a better error message when no table