mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: swap Exception.exception?
for Kernel.is_exception
(#584)
This commit is contained in:
parent
13f834ad09
commit
62ef8ff19c
2 changed files with 2 additions and 2 deletions
|
@ -141,7 +141,7 @@ defmodule Ash.ActionInput do
|
|||
end
|
||||
|
||||
Enum.reduce(messages, input, fn message, input ->
|
||||
if Exception.exception?(message) do
|
||||
if is_exception(message) do
|
||||
error =
|
||||
message
|
||||
|> Ash.Error.to_ash_error()
|
||||
|
|
|
@ -3801,7 +3801,7 @@ defmodule Ash.Changeset do
|
|||
end
|
||||
|
||||
Enum.reduce(messages, changeset, fn message, changeset ->
|
||||
if Exception.exception?(message) do
|
||||
if is_exception(message) do
|
||||
error =
|
||||
message
|
||||
|> Ash.Error.to_ash_error()
|
||||
|
|
Loading…
Reference in a new issue