Skip to content

Commit 621a74e

Browse files
better error message
1 parent e040e04 commit 621a74e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/variable.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function _defVar(ds::AbstractDataset,name::SymbolOrString,data,nctype,vardimname
135135

136136
if (dimlen != size(data,i))
137137
error("dimension $(dimname) is already defined with the " *
138-
"length $dimlen. It cannot be redefined with a length of $(size(data,i)).")
138+
"length $dimlen. It cannot be redefined with a length of $(size(data,i)) for the variable $name.")
139139
end
140140
end
141141
end

0 commit comments

Comments
 (0)