From 34c754dd640c9c0e2bdf543a28a24f7aaa9e8029 Mon Sep 17 00:00:00 2001 From: Vecko <36369090+VeckoTheGecko@users.noreply.github.com> Date: Wed, 25 Dec 2024 18:13:16 +0000 Subject: [PATCH] Edit serialization error message Fixes #4926 --- xarray/backends/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: