Skip to content

Commit

Permalink
summary: another band-aid for missing stacktrace
Browse files Browse the repository at this point in the history
The following error was reported:

	UndefVarError: `bt` not defined

Previously, a different error was reported where bt was a 0-length
vector. Why the stacktrace is missing is not known in either case.
  • Loading branch information
msagarpatel committed Dec 28, 2023
1 parent f9431b9 commit 6468d11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exception_summary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,10 @@ function _summarize_exception(io::IO, exc, stack; prefix = nothing)
end
end
# Now print just the very first frame we've collected:
if isempty(bt)
if ! @isdefined :bt || isempty(bt)
# A report was received about bt being a 0-element Vector. It's not clear why the
# stacktrace is missing, but this should tide us over in the meantime.
# Then another report was received about bt not being defined.
_indent_println(io, "no stacktrace available")
else
(frame, n) = bt[1]
Expand Down

0 comments on commit 6468d11

Please sign in to comment.