Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update src/document.jl
Co-authored-by: ZacNugent <zac.nugent@gmail.com>
  • Loading branch information
pfitzseb and ZacLN authored Jan 29, 2021
commit 7844396af912e6153f9531db020390f4f38b8af7
2 changes: 1 addition & 1 deletion src/document.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ function get_offset2(doc::Document, line::Integer, character::Integer)
end
catch err
if err isa BoundsError
throw(LSOffsetError("get_offset2 crashed at location 3. More diagnostics:\nline=$line\nline_offsets='$line_offsets'\ncharacter=$character\npos=$pos\lastindex=$(lastindex(text))"))
throw(LSOffsetError("get_offset2 crashed at location 3. More diagnostics:\nline=$line\nline_offsets='$line_offsets'\ncharacter=$character\npos=$pos\nlastindex=$(lastindex(text))"))
else
rethrow(err)
end
Expand Down