Provide group creation changeset errors as well to absinthe

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-03-24 15:19:15 +01:00 committed by tykayn
parent 2a2e5808f5
commit 96b93ac841

View File

@ -160,7 +160,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
{:picture, {:error, :file_too_large}} ->
{:error, dgettext("errors", "The provided picture is too heavy")}
{:error, err} when is_binary(err) ->
{:error, err} ->
{:error, err}
end
else