Simplify response for user not found
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
07dc83c9dd
commit
003a8fe4e4
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user