chore: accept value and ignore it in Ash.Error.Unknown.UnknownError

This commit is contained in:
Zach Daniel 2024-07-09 20:46:54 -04:00
parent 60a97de9b7
commit cdb3ddc5e4

View file

@ -2,7 +2,7 @@ defmodule Ash.Error.Unknown.UnknownError do
@moduledoc "Used when an unknown error occurs"
use Ash.Error.Exception
use Splode.Error, fields: [:error, :field], class: :unknown
use Splode.Error, fields: [:error, :field, :value], class: :unknown
def message(%{error: error}) do
if is_binary(error) do