Skip to content
Snippets Groups Projects
Commit de767cce authored by ale's avatar ale
Browse files

Panic on fatal errors

This allows users of crawl-as-a-library to recover from unexpected
errors as a last resort.
parent 082784b7
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment