fix: upload config without previous config + bump deps

This commit is contained in:
Mikaël Cluseau
2019-12-07 21:09:12 +01:00
parent f43f4fcec4
commit 8ce4e97922
7 changed files with 30 additions and 43 deletions

View File

@ -1,6 +1,7 @@
package main
import (
"fmt"
"log"
"net"
"net/http"
@ -124,7 +125,7 @@ func wsNotFound(req *restful.Request, resp *restful.Response) {
}
func wsError(resp *restful.Response, err error) {
log.Print("request failed: ", err)
log.Output(2, fmt.Sprint("request failed: ", err))
resp.WriteErrorString(
http.StatusInternalServerError,
http.StatusText(http.StatusInternalServerError))