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
parent 1b0f59937d
commit 3c294b33a8
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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