diff --git a/xarray/backends/api.py b/xarray/backends/api.py index b85b5015553..6d73946bb59 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -859,10 +859,9 @@ def open_mfdataset( paths = [fs.get_mapper(path) for path in paths] elif is_remote_uri(paths): raise ValueError( - "cannot do wild-card matching for paths that are remote URLs: " - "{!r}. Instead, supply paths as an explicit list of strings.".format( - paths - ) + "cannot do wild-card matching for paths that are remote URLs " + f"unless engine='zarr' is specified. Got paths: {paths}. " + "Instead, supply paths as an explicit list of strings." ) else: paths = sorted(glob(_normalize_path(paths)))