File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -253,11 +253,11 @@ defmodule IEx do
253
253
config.binding(binding).scope(scope)
254
254
rescue
255
255
exception ->
256
- Util.print_exception(exception)
256
+ Util.print_exception(exception, System.stacktrace )
257
257
System.halt(1)
258
258
catch
259
259
kind, error ->
260
- Util.print_error(kind, error)
260
+ Util.print_error(kind, error, System.stacktrace )
261
261
System.halt(1)
262
262
end
263
263
end
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ defmodule IEx.Server do
28
28
eval ( code , line , counter , config )
29
29
rescue
30
30
exception ->
31
- Util . print_exception ( exception )
31
+ Util . print_exception ( exception , System . stacktrace )
32
32
config . cache ( '' )
33
33
catch
34
34
kind , error ->
35
- Util . print_error ( kind , error )
35
+ Util . print_error ( kind , error , System . stacktrace )
36
36
config . cache ( '' )
37
37
end
38
38
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ defmodule IEx.Util do
4
4
# Private functions used by several IEx.* modules.
5
5
6
6
@ doc false
7
- def print_exception ( exception ) do
8
- print_stacktrace System . stacktrace , fn ->
7
+ def print_exception ( exception , stacktrace ) do
8
+ print_stacktrace stacktrace , fn ->
9
9
"** (#{ inspect exception . __record__ ( :name ) } ) #{ exception . message } "
10
10
end
11
11
end
12
12
13
13
@ doc false
14
- def print_error ( kind , reason ) do
15
- print_stacktrace System . stacktrace , fn ->
14
+ def print_error ( kind , reason , stacktrace ) do
15
+ print_stacktrace stacktrace , fn ->
16
16
"** (#{ kind } ) #{ inspect ( reason ) } "
17
17
end
18
18
end
You can’t perform that action at this time.
0 commit comments