diff --git a/output/outputs.go b/output/outputs.go index 56d71e9..79f1a11 100644 --- a/output/outputs.go +++ b/output/outputs.go @@ -229,7 +229,7 @@ func RunHandler(w http.ResponseWriter, r *http.Request) { channelRet["cmd"] = "run" channelRet["output"] = "" + buf + "" - err := wsChannel.WriteJSON(&channelRet) + err = wsChannel.WriteJSON(&channelRet) if nil != err { logger.Error(err) break