From fac88abd58b2a869dde913fe64765115378479ee Mon Sep 17 00:00:00 2001 From: Baokun Lee Date: Thu, 25 Jul 2019 21:03:07 +0800 Subject: [PATCH] print error into http --- proxy/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/server.go b/proxy/server.go index 403ad7e..72198ad 100644 --- a/proxy/server.go +++ b/proxy/server.go @@ -184,7 +184,7 @@ func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { } if openErr != nil { code := http.StatusNotFound - http.Error(w, "not found", code) + http.Error(w, openErr.Error(), code) return } defer f.Close()