diff --git a/lib/graphql/error.ex b/lib/graphql/error.ex index e412d6465..bcbbfc193 100644 --- a/lib/graphql/error.ex +++ b/lib/graphql/error.ex @@ -72,6 +72,8 @@ defmodule Mobilizon.GraphQL.Error do } end + defp handle(%Error{} = error), do: error + # ... Handle other error types here ... defp handle(other) do Logger.error("Unhandled error term:\n#{inspect(other)}")