From 64c9ea01585fef7a0aeac64be73853f84a1fb8b9 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 22 Jun 2019 01:11:14 +0100 Subject: [PATCH] view error handling context update and cleanup --- api.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api.go b/api.go index 01f2d2d..33e4198 100755 --- a/api.go +++ b/api.go @@ -27,8 +27,7 @@ func Request(path string) ([]byte, *HTTPError) { req, err := http.NewRequest("GET", url(path), nil) if err != nil { log.Println("Error reading request. ", err) - return nil, &HTTPError{Status: "500 Internal Server Error", StatusCode: 500} - + return nil, &HTTPError{Status: "500 Internal Server Error", StatusCode: 500} } head, er := Header()