diff --git a/api.go b/api.go index 302dd05..24e8a24 100644 --- a/api.go +++ b/api.go @@ -79,7 +79,7 @@ func (a apiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { } if j, err := json.Marshal(ret); err != nil { - http.Error(w, fmt.Sprintf("{errmsg:\"%q\"}", err), http.StatusInternalServerError) + http.Error(w, fmt.Sprintf("{errmsg:%q}", err), http.StatusInternalServerError) } else { w.WriteHeader(resStatus) w.Write(j)