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 a46d711 commit 4ac3e4eCopy full SHA for 4ac3e4e
src/convert.jl
@@ -13,7 +13,7 @@
13
@inline Tuple(a::StaticArray) = unroll_tuple(a, Length(a))
14
15
@noinline function dimension_mismatch_fail(SA::Type, a::AbstractArray)
16
- error("Dimension mismatch. Expected input array of length $(length(SA)), got length $(length(a))")
+ throw(DimensionMismatch("expected input array of length $(length(SA)), got length $(length(a))"))
17
end
18
19
@inline function convert(::Type{SA}, a::AbstractArray) where {SA <: StaticArray}
0 commit comments