in api/src/main/scala/com/gu/core/utils/ErrorHandling.scala [27:32]
def handleIoErrors[A](action: => A): Either[Error, A] = { attempt(action) match { case Success(v) => Right(v) case Failure(e) => Left(ioError(e)) } }