Reraise with stacktrace in task with shutdown

This commit is contained in:
José Valim
2018-07-09 08:39:20 +02:00
parent fd27c2053f
commit 9afb27a4e2
+1 -1
View File
@@ -112,7 +112,7 @@ defmodule Task.Supervised do
when value == :normal
when value == :shutdown
when tuple_size(value) == 2 and elem(value, 0) == :shutdown ->
exit(value)
:erlang.raise(:exit, value, __STACKTRACE__)
:exit, value ->
log(info, mfa, {value, __STACKTRACE__})