From fabe01d2981d3ef7154a9d10d9024516c4ef190a Mon Sep 17 00:00:00 2001 From: KristofferC Date: Tue, 7 Oct 2025 14:08:26 +0200 Subject: [PATCH] fix stacktrace handling on nightly --- src/error_handling.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/error_handling.jl b/src/error_handling.jl index 6bb5286..91feba6 100644 --- a/src/error_handling.jl +++ b/src/error_handling.jl @@ -68,7 +68,13 @@ function handle_exceptions(exceptions::Vector, action) end end -handle_error(e, q, bt) = throw(CapturedException(e, trim!(stacktrace(bt)))) +function handle_error(e, q, bt) + if VERSION >= v"1.13.0-DEV.927" + throw(CapturedException(e, bt)) + else + throw(CapturedException(e, trim!(stacktrace(bt)))) + end +end function trim!(sfs) i = firstindex(sfs)