Make sure a person profile page returns 404

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-10-12 12:16:36 +02:00
parent ff51c5bd1e
commit cd5418825b
8 changed files with 57 additions and 24 deletions

View File

@@ -38,7 +38,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
find_group(parent, args, nil)
_ ->
{:error, dgettext("errors", "Group with name %{name} not found", name: name)}
{:error, :group_not_found}
end
end
@@ -52,7 +52,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Group do
{:ok, actor}
else
_ ->
{:error, dgettext("errors", "Group with name %{name} not found", name: name)}
{:error, :group_not_found}
end
end