Skip to content

Commit

Permalink
Update Exception.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 2, 2024
1 parent aff6a1a commit f817dd9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/runner/PlutoRunner/src/display/Exception.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,15 @@ function format_output(val::CapturedException; context=default_iocontext)
pretty = map(stack_relevant) do s
method = method_from_frame(s)

local url = local repo_url = local repo_type = local sp = nothing
if method isa Method
url = BrowserMacrosLite.method_url(method)
repo_url = BrowserMacrosLite._repo_url(url)
repo_type = BrowserMacrosLite.repotype(method)
sp = source_package(method)
else
url = repo_url = repo_type = sp = nothing
try
url = BrowserMacrosLite.method_url(method)
repo_url = BrowserMacrosLite._repo_url(url)
repo_type = BrowserMacrosLite.repotype(method)
sp = source_package(method)
catch e
end
end

Dict(
Expand Down

0 comments on commit f817dd9

Please sign in to comment.