Simplify response for user not found
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -455,7 +455,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Person do
|
|||||||
{:ok, nil}
|
{:ok, nil}
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
{:error, dgettext("errors", "User not found")}
|
{:error, :user_not_found}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user