tdb2: actually implement tdb_error().