Skip to content

Commit

Permalink
better evalall stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
pfitzseb committed Oct 28, 2018
1 parent 0d778d0 commit 20188bc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/eval.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,11 @@ handle("evalall") do data
result = include_string(mod, code, path)
catch e
bt = catch_backtrace()
ee = EvalError(e, stacktrace(bt))
st = cliptrace(stacktrace(bt))
ee = EvalError(e, st)
if isREPL()
printstyled(stderr, "ERROR: ", color=:red)
Base.showerror(stderr, e, bt)
printstyled(stderr, "ERROR: "; bold=true, color=Base.error_color())
showerror(IOContext(stderr, :limit => true), err, st)
println(stderr)
else
render(Console(), ee)
Expand Down

0 comments on commit 20188bc

Please sign in to comment.