diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-06-06 18:16:29 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-06-08 02:29:23 -0400 |
commit | 6c1b09bbeb1a7268a0d590e0a20ab2d34b395c8f (patch) | |
tree | 2c843adf344830510ff517f344b3af451955f98c /svc/query.go | |
parent | 5fa9ec1b63acc6ac9dc0a8b5d2f8f044c27ea45e (diff) | |
download | getwtxt-6c1b09bbeb1a7268a0d590e0a20ab2d34b395c8f.tar.gz |
cleaned up error handling
Diffstat (limited to 'svc/query.go')
-rw-r--r-- | svc/query.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svc/query.go b/svc/query.go index a27747d..f2696dd 100644 --- a/svc/query.go +++ b/svc/query.go @@ -64,9 +64,7 @@ func apiEndpointQuery(w http.ResponseWriter, r *http.Request) error { pageVal = strings.TrimSpace(pageVal) page, err := strconv.Atoi(pageVal) - if err != nil { - log.Printf("%v\n", err.Error()) - } + errLog("", err) vars := mux.Vars(r) endpoint := vars["endpoint"] |