We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8827e2 commit 0c77e6eCopy full SHA for 0c77e6e
src/zarr/core/group.py
@@ -676,9 +676,11 @@ def from_dict(
676
) -> AsyncGroup:
677
node_type = data.pop("node_type", None)
678
if node_type == "array":
679
- raise ContainsArrayError(store_path.store, store_path.path)
+ msg = f"An array already exists in store {store_path.store} at path {store_path.path}."
680
+ raise ContainsArrayError(msg)
681
elif node_type not in ("group", None):
- raise GroupNotFoundError(store_path.store, store_path.path)
682
+ msg = f"Node type in metadata ({node_type}) is not 'group'"
683
+ raise GroupNotFoundError(msg)
684
return cls(
685
metadata=GroupMetadata.from_dict(data),
686
store_path=store_path,
0 commit comments