From 3c294b33a8a0655457c4f6a7572eabebb8a936ce Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 24 Mar 2022 15:19:15 +0100 Subject: [PATCH] Provide group creation changeset errors as well to absinthe Signed-off-by: Thomas Citharel --- lib/graphql/resolvers/group.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphql/resolvers/group.ex b/lib/graphql/resolvers/group.ex index fed9d320f..65741f7a9 100644 --- a/lib/graphql/resolvers/group.ex +++ b/lib/graphql/resolvers/group.ex @@ -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