diff options
author | ale <ale@incal.net> | 2020-08-20 14:30:01 +0100 |
---|---|---|
committer | ale <ale@incal.net> | 2020-08-20 14:30:01 +0100 |
commit | cf35cce601579804ed91027fce92c2d507bc939d (patch) | |
tree | f7105f963aa1d7e320a943a435986cffe61ddc14 | |
parent | 9d07df0980b65c95661631d3c967cf9acb8961f5 (diff) | |
download | crawl-cf35cce601579804ed91027fce92c2d507bc939d.tar.gz crawl-cf35cce601579804ed91027fce92c2d507bc939d.zip |
Panic instead of just dying with fatal error
-rw-r--r-- | crawler.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -262,7 +262,7 @@ func (c *Crawler) urlHandler(queue <-chan queuePair) { case ErrRetryRequest: Must(c.queue.Retry(wb, p, errorRetryDelay)) default: - log.Fatalf("fatal error in handling %s: %v", p.URL, err) + log.Panicf("fatal error in handling %s: %v", p.URL, err) } // Write the result in our database. |