Skip to content
Closed
Changes from all commits
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
7 changes: 4 additions & 3 deletions src/expander_pipeline.jl
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function Selectors.runner(::Type{Expanders.EvalBlocks}, node, page, doc)
@docerror(
doc, :eval_block,
"""
failed to evaluate `@eval` block in $(Documenter.locrepr(page.source))
failed to evaluate `@eval` block in $(Documenter.locrepr(page.source, lines))
```$(x.info)
$(x.code)
```
Expand All @@ -732,7 +732,7 @@ function Selectors.runner(::Type{Expanders.EvalBlocks}, node, page, doc)
# objects, like Paragraph.
@docerror(
doc, :eval_block, """
Invalid type of object in @eval in $(Documenter.locrepr(page.source))
Invalid type of object in @eval in $(Documenter.locrepr(page.source, lines))
```$(x.info)
$(x.code)
```
Expand Down Expand Up @@ -1015,10 +1015,11 @@ function Selectors.runner(::Type{Expanders.SetupBlocks}, node, page, doc)
end
catch err
bt = Documenter.remove_common_backtrace(catch_backtrace())
lines = Documenter.find_block_in_file(x.code, page.source)
@docerror(
doc, :setup_block,
"""
failed to run `@setup` block in $(Documenter.locrepr(page.source))
failed to run `@setup` block in $(Documenter.locrepr(page.source, lines))
```$(x.info)
$(x.code)
```
Expand Down
Loading