roberto.guerra
Try
getURLContent("<http://danielwestheide.com/foobar>") match { case Success(lines) => lines.foreach(println) case Failure(ex) => println(s"Problem rendering URL content: ${ex.getMessage}") }