You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 27, 2020. It is now read-only.
EDIT: The fix for this is probably to do whatever happens when making an invalid request to /torrent/invalidTorrent and output the following:
{"message":"Torrent not found."}
SECOND EDIT: I'm new to programming in Golang so I'm not sure how efficient this is but I managed to solve this issue by adding the following to the beggining of of the apiScrape function:
defer func() {
if s := recover(); s != nil {
r.JSON(404, map[string]interface{}{"message": "Torrent not found."})
return
}
}()