diff --git a/lib/refactory.ex b/lib/refactory.ex index 0f02598..1ae72f2 100644 --- a/lib/refactory.ex +++ b/lib/refactory.ex @@ -130,7 +130,13 @@ defmodule Refactory do struct!(type, deep_merge(Map.from_struct(left), Map.from_struct(right))) end - defp deep_resolve(_key, %{__struct__: type}, %{__struct__: other_type}, _concat_lists?, _struct_overrides?) do + defp deep_resolve( + _key, + %{__struct__: type}, + %{__struct__: other_type}, + _concat_lists?, + _struct_overrides? + ) do raise ArgumentError, "#{type} cannot be merged with #{other_type}." end