chg: better error message for export