Skip to content

Commit 4ed77a5

Browse files
jhammand-v-b
andauthored
Update src/zarr/core/indexing.py
Co-authored-by: Davis Bennett <[email protected]>
1 parent ada2999 commit 4ed77a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zarr/core/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _zarr_array_to_int_or_bool_array(arr: Array) -> npt.NDArray[np.intp] | npt.N
7878
if arr.dtype.kind in ("i", "b"):
7979
return np.asarray(arr)
8080
else:
81-
raise IndexError("arrays used as indices must be of integer (or boolean) type")
81+
raise IndexError(f"Invalid array dtype: {arr.dtype}. Arrays used as indices must be of integer or boolean type")
8282

8383

8484
@runtime_checkable

0 commit comments

Comments
 (0)