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 41b1fc9 commit 5104fafCopy full SHA for 5104faf
1 file changed
src/tensors/tensor.jl
@@ -29,7 +29,7 @@ struct TensorMap{T, S <: IndexSpace, N₁, N₂, A <: DenseVector{T}} <: Abstrac
29
I = sectortype(S)
30
T <: Real && !(sectorscalartype(I) <: Real) &&
31
@warn("Tensors with real data might be incompatible with sector type $I", maxlog = 1)
32
- length(data) == dim(space) || throw(DimensionMismatch("invalid length of data"))
+ length(data) == dim(space) || throw(DimensionMismatch(lazy"length of data ($(length(data))) does not match dimension of space ($(dim(space)))"))
33
return new{T, S, N₁, N₂, A}(data, space)
34
end
35
0 commit comments