Skip to content

Commit 24dde42

Browse files
authored
Fix MethodError (#406)
`MethodError` expects `args` to be a `Tuple`. Right now this generates errors printing the stack trace.
1 parent 34ac960 commit 24dde42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tensors/abstracttensor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function storagetype(::Type{T}) where {T <: AbstractTensorMap}
6161
return similarstoragetype(scalartype(T))
6262
end
6363
end
64-
storagetype(T::Type) = throw(MethodError(storagetype, T))
64+
storagetype(T::Type) = throw(MethodError(storagetype, (T,)))
6565

6666
# storage type determination and promotion - hooks for specializing
6767
# the default implementation tries to leverarge inference and `similar`

0 commit comments

Comments
 (0)