Skip to content

Commit 801034e

Browse files
committed
Fixed BoundsError for knot-sets
1 parent 8ac51b3 commit 801034e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/knot_sets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ function getindex(t::AbstractKnotSet{k,ml,mr}, i::Integer) where {k,ml,mr}
146146
elseif i < ml + ni + mr
147147
last(t)
148148
else
149-
throw(BoundsError("Trying to access knot set of length $(length(t)) at index $i"))
149+
throw(BoundsError(t, i))
150150
end
151151
end
152152
lastindex(t::AbstractKnotSet) = length(t)

0 commit comments

Comments
 (0)