mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: properly halt in ets dump_to_native reducer
This commit is contained in:
parent
0d518b0057
commit
feee4516bc
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue