diff options
author | ale <ale@incal.net> | 2020-07-30 07:43:40 +0100 |
---|---|---|
committer | ale <ale@incal.net> | 2020-07-30 07:43:40 +0100 |
commit | de767cce09dd2e8aeafc79a150ef6492d80d7b2c (patch) | |
tree | 58839ecdf4cce16e9cad4cef26ab1ed69cbceebf | |
parent | 082784b74f4241af0512e69dc80a72efb976dd61 (diff) | |
download | crawl-de767cce09dd2e8aeafc79a150ef6492d80d7b2c.tar.gz crawl-de767cce09dd2e8aeafc79a150ef6492d80d7b2c.zip |
Panic on fatal errors
This allows users of crawl-as-a-library to recover from unexpected
errors as a last resort.
-rw-r--r-- | crawler.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -400,6 +400,6 @@ func HandleRetries(wrap Handler) Handler { // error that we can't recover from. func Must(err error) { if err != nil { - log.Fatalf("fatal error: %v", err) + log.Panicf("fatal error: %v", err) } } |