diff --git a/xarray/backends/api.py b/xarray/backends/api.py index a52e73701ab..32722ccff91 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -156,13 +156,13 @@ def check_name(name: Hashable): raise ValueError( f"Invalid name {name!r} for DataArray or Dataset key: " "string must be length 1 or greater for " - "serialization to netCDF files" + "serialization to netCDF or zarr files" ) elif name is not None: raise TypeError( f"Invalid name {name!r} for DataArray or Dataset key: " "must be either a string or None for serialization to netCDF " - "files" + "or zarr files" ) for k in dataset.variables: