Skip to content

Commit aecfecd

Browse files
KristofferCKristofferC
andauthored
fix stacktrace handling on nightly (#415)
Co-authored-by: KristofferC <[email protected]>
1 parent 83af3dd commit aecfecd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/error_handling.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,13 @@ function handle_exceptions(exceptions::Vector, action)
6868
end
6969
end
7070

71-
handle_error(e, q, bt) = throw(CapturedException(e, trim!(stacktrace(bt))))
71+
function handle_error(e, q, bt)
72+
if VERSION >= v"1.13.0-DEV.927"
73+
throw(CapturedException(e, bt))
74+
else
75+
throw(CapturedException(e, trim!(stacktrace(bt))))
76+
end
77+
end
7278

7379
function trim!(sfs)
7480
i = firstindex(sfs)

0 commit comments

Comments
 (0)