diff options
author | Niall Sheridan <nsheridan@gmail.com> | 2018-08-08 11:24:22 +0100 |
---|---|---|
committer | Niall Sheridan <nsheridan@gmail.com> | 2018-08-08 12:49:47 +0100 |
commit | 12417f0dddf4be86aa5b9a4cb25bf48a4e301086 (patch) | |
tree | 280653d0ecefbbb22d9574221b64b079953a8c4b /server/web.go | |
parent | 60d005f8d174d21162cab2b029f74cfe2925acab (diff) |
Misc fixes
- Add `fast_finish` to travis config
- Specify that Go 1.9 is supported
- Additional error checking which was previously missed
- Make the migrations test better
-
Diffstat (limited to 'server/web.go')
-rw-r--r-- | server/web.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/web.go b/server/web.go index a32dd40..5677429 100644 --- a/server/web.go +++ b/server/web.go @@ -228,9 +228,12 @@ func listCertsJSONHandler(a *appContext, w http.ResponseWriter, r *http.Request) } includeExpired, _ := strconv.ParseBool(r.URL.Query().Get("all")) certs, err := certstore.List(includeExpired) + if err != nil { + return http.StatusInternalServerError, err + } j, err := json.Marshal(certs) if err != nil { - return http.StatusInternalServerError, errors.New(http.StatusText(http.StatusInternalServerError)) + return http.StatusInternalServerError, err } w.Write(j) return http.StatusOK, nil |