fix: swap Exception.exception? for Kernel.is_exception (#584)

This commit is contained in:
Alan Heywood 2023-05-23 06:11:25 +10:00 committed by GitHub
parent 13f834ad09
commit 62ef8ff19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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()