returns after error rather than opening empty table