Wean off TDB_ERRCODE.