diff --git a/src/main/scala/com/gravity/goose/Crawler.scala b/src/main/scala/com/gravity/goose/Crawler.scala index 4f3b32344..2dbce1a1d 100644 --- a/src/main/scala/com/gravity/goose/Crawler.scala +++ b/src/main/scala/com/gravity/goose/Crawler.scala @@ -88,7 +88,8 @@ class Crawler(config: Configuration) { } } catch { case e: Exception => { - warn(e, e.toString) + warn(e, e.getMessage) + throw e } } } @@ -174,4 +175,4 @@ class Crawler(config: Configuration) { object Crawler extends Logging { val logPrefix = "crawler: " -} \ No newline at end of file +}