Commit 6b6c9f99bb47e30c56bb8a1073e473d23626d4c9

Thomas de Grivel 2022-02-03T15:22:43

fix stack trace

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