diff --git a/lib/ash/data_layer/ets/ets.ex b/lib/ash/data_layer/ets/ets.ex index 9582cd7a..6677ae0d 100644 --- a/lib/ash/data_layer/ets/ets.ex +++ b/lib/ash/data_layer/ets/ets.ex @@ -525,11 +525,12 @@ defmodule Ash.DataLayer.Ets do {:cont, {:ok, Map.put(attrs, attribute.name, casted_value)}} :error -> - {:error, - "Failed to dump #{inspect(Map.get(record, attribute.name))} as type #{inspect(attribute.type)}"} + {:halt, + {:error, + "Failed to dump #{inspect(Map.get(record, attribute.name))} as type #{inspect(attribute.type)}"}} {:error, error} -> - {:error, error} + {:halt, {:error, error}} end end end)