Skip to content

Commit

Permalink
avoid exit on timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo authored May 22, 2020
1 parent 3f4814a commit 9a60e0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pastego.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ func pasteSearcher(link *filesupport.PasteJSON) {
client := &http.Client{Timeout: 10 * time.Second}
response, err := client.Get(link.ScrapeURL)
if err != nil {
log.Fatal(err)
logToFile(err.Error())
return
}
defer response.Body.Close()

Expand Down

0 comments on commit 9a60e0a

Please sign in to comment.