Browse Source

Also print code blocks

pull/160/head
Morten Piibeleht 4 years ago
parent
commit
3db0d4b2c3
  1. 5
      src/Literate.jl

5
src/Literate.jl

@ -812,8 +812,11 @@ end @@ -812,8 +812,11 @@ end
function Base.showerror(io::IO, e::EvalException)
println(io, "Literate.EvalException: $(typeof(e.error)) when executing code in: $(e.file)")
println(io, "While executing the following code block:")
println(io, "```")
println(io, e.codeblock)
println(io, "```")
showerror(io, e.error, e.backtrace)
println(io)
end
# Stolen from Documenter

Loading…
Cancel
Save