stacktrace fixes
This commit is contained in:
parent
f8a18ef3c5
commit
a1e35ea2c8
@ -9,6 +9,7 @@ end
|
||||
using Base: @get!
|
||||
using DataFlow: Constant, constant
|
||||
using DataFlow.Interpreter
|
||||
using DataFlow.Interpreter: Exception, totrace
|
||||
using Flux: imap
|
||||
|
||||
# TODO: implement Julia's type promotion rules
|
||||
@ -97,6 +98,6 @@ macro mxerr(stk, ex)
|
||||
catch e
|
||||
(isa(e, mx.MXError) && (node = errnode(e)) != nothing) || rethrow()
|
||||
stk = $(esc(stk))
|
||||
throw(DataFlow.Exception(e, DataFlow.totrace(stk[node])))
|
||||
throw(Exception(e, totrace(stk[node])))
|
||||
end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user