Skip to content

Commit

Permalink
limit=true for error output (fixes #974)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Feb 12, 2021
1 parent 2300ab9 commit 5328705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function error_content(e, bt=catch_backtrace();
evalue = try
# Peel away one LoadError layer that comes from running include_string on the cell
isa(e, LoadError) && (e = e.error)
sprint((io, e, bt) -> invokelatest(showerror_nobt, io, e, bt), e, bt)
sprint((io, e, bt) -> invokelatest(showerror_nobt, io, e, bt), e, bt; context=:limit=>true)
catch
"SYSTEM: show(lasterr) caused an error"
end
Expand Down

0 comments on commit 5328705

Please sign in to comment.