[SPARK-4274] [SQL] Print informative message while logical plan analyzing failed in test

I don't think thats correct, stringOrError takes a closure so the actual calculation is done inside of the function and should be correctly caught:

```scala
scala> def stringOrError[A](f: => A): String =
     |       try f.toString catch { case e: Throwable => e.toString }
stringOrError: [A](f: => A)String

scala> stringOrError(sys.error("test"))
res0: String = java.lang.RuntimeException: test

scala> def error = sys.error("test")
error: Nothing

scala> stringOrError(error)
res1: String = java.lang.RuntimeException: test
```