def checkResponse()

in anghammarad/src/main/scala/com/gu/anghammarad/messages/HangoutsService.scala [24:29]


  def checkResponse(response: Response[Either[String,String]]): Try[Unit] = {
    if (response.isSuccess)
      Success(())
    else
      Fail(s"Unable to send message. Received response code of: ${response.statusText}.")
  }