Resource fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-03-31 10:41:38 +02:00
parent 9ab95efb08
commit 4c9065ce68
6 changed files with 79 additions and 26 deletions

View File

@@ -122,6 +122,9 @@ defmodule Mobilizon.GraphQL.Resolvers.Resource do
{:ok, _, %Resource{} = resource} ->
{:ok, resource}
{:error, %Ecto.Changeset{} = changeset} ->
{:error, changeset}
{:error, _err} ->
{:error, dgettext("errors", "Error while creating resource")}
end