Further improvement to error handling of HTTP internal output.
This commit is contained in:
parent
3c45efc9e4
commit
a9bf4fea4a
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ namespace Mist {
|
|||
H.SetBody("{\"error\":\"Could not retrieve stream. Sorry.\"}\n");
|
||||
}else{
|
||||
H.Clean();
|
||||
H.SetBody("mistvideo['" + streamName + "'] = {\"error\":\"Could not retrieve stream. Sorry.\"};\n");
|
||||
H.SetBody("if (!mistvideo){var mistvideo = {};}\nmistvideo['" + streamName + "'] = {\"error\":\"Could not retrieve stream. Sorry.\"};\n");
|
||||
}
|
||||
H.SendResponse("200", "Stream not found", myConn);
|
||||
}else{
|
||||
|
|
Loading…
Add table
Reference in a new issue