change errmsg for missing usn or mac

This commit is contained in:
r0n1n7an 2023-12-19 14:48:31 +08:00
parent f5310b8930
commit a74c7193c4
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -51,7 +51,7 @@ func (e *EWS) SetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
if params["USN"] == "" || params["MAC"] == "" {
logger.Printf("[ERR] %s; %s; %#v; %s\r\n", addr, uri, params, "Missing Parameter USN/MAC.")
rst["RESULT"] = "NG"
rst["ErrMsg"] = e.SimpleMsgHTML("red", "Invalid Parameters !")
rst["ErrMsg"] = "Missing Parameter USN/MAC."
return rst
}