Simplify response for user not found

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-12-15 09:46:38 +01:00 committed by tykayn
parent 07dc83c9dd
commit 003a8fe4e4
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Person do
{:ok, nil}
_ ->
{:error, dgettext("errors", "User not found")}
{:error, :user_not_found}
end
end