Skip to content

Commit f265ca2

Browse files
committed
unwrap ExceptionStack in code_ handling
1 parent 47da204 commit f265ca2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/reflection.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ InteractiveUtils.code_lowered(err::KernelError; kwargs...) = code_lowered(err.jo
164164
InteractiveUtils.code_typed(err::KernelError; kwargs...) = code_typed(err.job; kwargs...)
165165
InteractiveUtils.code_warntype(err::KernelError; kwargs...) = code_warntype(err.job; kwargs...)
166166

167+
# Technically type-pirarcy
168+
InteractiveUtils.code_lowered(err::Base.ExceptionStack; kwargs...) = InteractiveUtils.code_lowered(only(err.stack).exception; kwargs...)
169+
InteractiveUtils.code_typed(err::Base.ExceptionStack; kwargs...) = InteractiveUtils.code_typed(only(err.stack).exception; kwargs...)
170+
InteractiveUtils.code_warntype(err::Base.ExceptionStack; kwargs...) = InteractiveUtils.code_warntype(only(err.stack).exception; kwargs...)
171+
172+
167173
struct jl_llvmf_dump
168174
TSM::LLVM.API.LLVMOrcThreadSafeModuleRef
169175
F::LLVM.API.LLVMValueRef

0 commit comments

Comments
 (0)