Skip to content

Commit 61deac3

Browse files
committed
Error messages updates
1 parent c4545f8 commit 61deac3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Zarr.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ function create(obj, dtype, data_size, chunk_size, fillvalue, compression)
281281
% Fill value must be of the same datatype as data.
282282
if ~isa(fillvalue, dtype)
283283
error("MATLAB:zarrcreate:invalidFillValueType",...
284-
"FillValue must be of the same datatype as data (""%s"").",...
284+
"Fill value must have the same data type (""%s"") as the Zarr array.",...
285285
dtype)
286286
end
287287
obj.FillValue = fillvalue;

zarrcreate.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ function zarrcreate(filepath, datasize, options)
9191
% Dimensionality of the dataset and the chunk size must be the same
9292
if any(size(datasize) ~= size(options.ChunkSize))
9393
error("MATLAB:zarrcreate:chunkDimsMismatch",...
94-
"Invalid chunk size. Chunk size must have the same number of dimensions as data size.");
94+
"Invalid chunk size. Chunk size must have the same number of dimensions as Zarr array size.");
9595
end
9696

9797
if any(options.ChunkSize > datasize)
9898
error("MATLAB:zarrcreate:chunkSizeGreater",...
99-
"Invalid chunk size. Each entry of ChunkSize must be less than or equal to the corresponding entry of datasize.");
99+
"Invalid chunk size. Each entry of ChunkSize must be less than or equal to the corresponding entry of Zarr array size.");
100100
end
101101
if isscalar(datasize)
102102
datasize = [1 datasize];

0 commit comments

Comments
 (0)