summaryrefslogtreecommitdiff
path: root/src/rhimportd
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhimportd')
-rw-r--r--src/rhimportd/ctrlWebSocket.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rhimportd/ctrlWebSocket.go b/src/rhimportd/ctrlWebSocket.go
index 35b285b..be7dcc0 100644
--- a/src/rhimportd/ctrlWebSocket.go
+++ b/src/rhimportd/ctrlWebSocket.go
@@ -323,6 +323,7 @@ func webSocketHandler(conf *rhimport.Config, db *rddb.DBChan, sessions *rhimport
reqdata := newWebSocketRequestData(conf)
if err := ws.ReadJSON(&reqdata); err != nil {
rhdl.Println("WebSocket Client", ws.RemoteAddr(), "disconnected:", err)
+ sendWebSocketErrorResponse(ws, http.StatusBadRequest, err.Error())
return
} else {
// rhdl.Printf("Websocket Client %s got: %+v", ws.RemoteAddr(), reqdata)