Minor fixes; Update frontend

This commit is contained in:
Lou Knauer
2022-03-08 10:33:56 +01:00
parent 8e8b205da8
commit 08d760361d
5 changed files with 5 additions and 4 deletions

View File

@@ -86,7 +86,7 @@ type ErrorResponse struct {
}
func handleError(err error, statusCode int, rw http.ResponseWriter) {
log.Printf("REST API error: %s", err.Error())
log.Warnf("REST API: %s", err.Error())
rw.Header().Add("Content-Type", "application/json")
rw.WriteHeader(statusCode)
json.NewEncoder(rw).Encode(ErrorResponse{