From 5e9981a5a8f993d6233b9a321a643bd947ce4449 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 29 Apr 2018 12:58:25 -0700 Subject: debug cleanup --- web/web.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web') diff --git a/web/web.go b/web/web.go index 2151926..21caf22 100644 --- a/web/web.go +++ b/web/web.go @@ -161,7 +161,8 @@ func imageProxyHandler(w http.ResponseWriter, r *http.Request) { request, err := http.NewRequest("GET", string(decodedURL), nil) if err != nil { - log.Fatalln(err) + http.Error(w, "failed to proxy image", 404) + return } userAgent := "neko RSS Reader Image Proxy +https://github.com/adammathes/neko" @@ -169,7 +170,7 @@ func imageProxyHandler(w http.ResponseWriter, r *http.Request) { resp, err := c.Do(request) if err != nil { - http.Error(w, "filed to proxy image", 404) + http.Error(w, "failed to proxy image", 404) return } -- cgit v1.2.3