diff --git a/lib/ash.ex b/lib/ash.ex index 14fb398c..592347f1 100644 --- a/lib/ash.ex +++ b/lib/ash.ex @@ -1272,8 +1272,11 @@ defmodule Ash do {:ok, result} <- Ash.Actions.Action.run(domain, input, opts) do {:ok, result} else + :ok -> + :ok + {:error, error} -> - {:error, error} + {:error, Ash.Error.to_error_class(error)} end end