From 9afb27a4e2b01ac02acd54575a4ec9bd8b91051e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 9 Jul 2018 08:39:20 +0200 Subject: [PATCH] Reraise with stacktrace in task with shutdown --- lib/elixir/lib/task/supervised.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elixir/lib/task/supervised.ex b/lib/elixir/lib/task/supervised.ex index f99ae5da79..1f092d6f0e 100644 --- a/lib/elixir/lib/task/supervised.ex +++ b/lib/elixir/lib/task/supervised.ex @@ -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__})