From 3db0d4b2c36b5b6d27403d7db71e3e230ef6f310 Mon Sep 17 00:00:00 2001 From: Morten Piibeleht Date: Sat, 10 Jul 2021 14:23:10 +1200 Subject: [PATCH] Also print code blocks --- src/Literate.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Literate.jl b/src/Literate.jl index 567f9d9..15a27ec 100644 --- a/src/Literate.jl +++ b/src/Literate.jl @@ -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