Skip to content

Commit

Permalink
Remove Main.var"workspace#5" from stack traces
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 4, 2024
1 parent 819b452 commit de2d859
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runner/PlutoRunner/src/display/Exception.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function format_output(val::CapturedException; context=default_iocontext)
pm = VERSION >= v"1.9" && method isa Method ? parentmodule(method) : nothing

Dict(
:call => pretty_stackcall(s, s.linfo),
:call => replace(pretty_stackcall(s, s.linfo), r"Main\.var\"workspace#\d+\"\." => ""),
:inlined => s.inlined,
:from_c => s.from_c,
:file => basename(String(s.file)),
Expand Down

0 comments on commit de2d859

Please sign in to comment.