Commit 144e1e6ffa8812475fe2560b919de9d4cccf0117

Thomas de Grivel 2022-02-03T15:21:11

fix stack trace

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/stack.ex b/lib/stack.ex
index abcfdfa..394db78 100644
--- a/lib/stack.ex
+++ b/lib/stack.ex
@@ -8,7 +8,7 @@ defmodule Stack do
     to_string(rest, [str | acc])
   end
   def to_string([{module, fun, arity, _} | rest], acc) do
-    str = "#{module}.#{fun}/#{arity}"
+    str = "#{module |> Enum.join(".")}.#{fun}/#{arity}"
     to_string(rest, [str | acc])
   end
   def to_string([elt | rest], acc) do