From 268b335946efdd29decdf6e8f8b4f2a2ca2dca0d Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Wed, 10 Apr 2024 13:58:22 -0400 Subject: [PATCH] chore: fix return type matching for generic actions --- lib/ash.ex | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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