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

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