Skip to content

Commit 7f48751

Browse files
committed
More useful error messages
1 parent c1acdcf commit 7f48751

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/zarr/storage/_common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,10 +321,12 @@ async def make_store_path(
321321
store = await MemoryStore.open(store_dict=store_like, read_only=_read_only)
322322
elif _has_fsspec and isinstance(store_like, FSMap):
323323
if path:
324-
raise ValueError("'path' was provided but is not used for FSMap store_like objects")
324+
raise ValueError(
325+
"'path' was provided but is not used for FSMap store_like objects. Specify the path when creating the FSMap instance instead."
326+
)
325327
if storage_options:
326328
raise ValueError(
327-
"'storage_options was provided but is not used for FSMap store_like objects"
329+
"'storage_options was provided but is not used for FSMap store_like objects. Specify the storage options when creating the FSMap instance instead."
328330
)
329331
store = FsspecStore.from_mapper(store_like, read_only=_read_only)
330332
else:

0 commit comments

Comments
 (0)