diff --git a/modules/core/src/main/scala/sangria/execution/Resolver.scala b/modules/core/src/main/scala/sangria/execution/Resolver.scala index b8aa3520..5e311cd7 100644 --- a/modules/core/src/main/scala/sangria/execution/Resolver.scala +++ b/modules/core/src/main/scala/sangria/execution/Resolver.scala @@ -788,7 +788,7 @@ class Resolver[Ctx]( newUc.map(_.ctxFn(v)).getOrElse(userCtx) def resolveError(newUc: Option[MappedCtxUpdate[Ctx, Any, Any]], e: Throwable) = { - try newUc.map(_.onError(e)) + try newUc.foreach(_.onError(e)) catch { case NonFatal(ee) => ee.printStackTrace() }