mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: properly wrap errored changesets in bulk creates
This commit is contained in:
parent
35b1278830
commit
58329a073d
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ defmodule Ash.Actions.Create.Bulk do
|
|||
if opts[:stop_on_error?] && !opts[:return_stream?] do
|
||||
throw({:error, Ash.Error.to_error_class(changeset.errors), 0, []})
|
||||
else
|
||||
changeset
|
||||
{:error, changeset}
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
|
Loading…
Reference in a new issue