Skip to content

Commit b205903

Browse files
michallepickijosevalim
authored andcommitted
Fix returning errors in Module.Types.Expr.of_expr (#10410)
1 parent ed2829d commit b205903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/module/types/expr.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ defmodule Module.Types.Expr do
254254

255255
case result do
256256
:ok -> {:ok, :dynamic, context}
257-
{:error, reason} -> {:error, reason}
257+
:error -> {:error, context}
258258
end
259259
end
260260

@@ -278,7 +278,7 @@ defmodule Module.Types.Expr do
278278

279279
case result do
280280
:ok -> {:ok, :dynamic, context}
281-
{:error, reason} -> {:error, reason}
281+
:error -> {:error, context}
282282
end
283283
end
284284

0 commit comments

Comments
 (0)