Skip to content

Commit 840c037

Browse files
committed
Merge branch 'chore/unformatted-exceptions' of https://github.com/d-v-b/zarr-python into chore/unformatted-exceptions
2 parents 9ce2404 + ec36c48 commit 840c037

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3553,7 +3553,7 @@ def _build_metadata_v3(zarr_json: dict[str, JSON]) -> ArrayV3Metadata | GroupMet
35533553
Convert a dict representation of Zarr V3 metadata into the corresponding metadata class.
35543554
"""
35553555
if "node_type" not in zarr_json:
3556-
msg = "Invalid value for 'node_type'. Expected 'array' or 'group'. Got nothing (the key is missing)."
3556+
msg = "Required key 'node_type' is missing from the provided metadata document."
35573557
raise MetadataValidationError(msg)
35583558
match zarr_json:
35593559
case {"node_type": "array"}:

0 commit comments

Comments
 (0)