stacktrace fixes

This commit is contained in:
Mike J Innes 2017-02-01 19:51:08 +05:30
parent f8a18ef3c5
commit a1e35ea2c8

View File

@ -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