From 3ad5f8977e03ecb510250b277903372a487559e2 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 15 Dec 2021 09:46:38 +0100 Subject: [PATCH] Simplify response for user not found Signed-off-by: Thomas Citharel --- lib/graphql/resolvers/person.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphql/resolvers/person.ex b/lib/graphql/resolvers/person.ex index 613c0c9e8..31a296d61 100644 --- a/lib/graphql/resolvers/person.ex +++ b/lib/graphql/resolvers/person.ex @@ -455,7 +455,7 @@ defmodule Mobilizon.GraphQL.Resolvers.Person do {:ok, nil} _ -> - {:error, dgettext("errors", "User not found")} + {:error, :user_not_found} end end