Small fix to error handling

This commit is contained in:
Tor Lillqvist 2015-03-13 13:59:51 +02:00
parent 1a5e1b0fa4
commit 44c2ef32f5

View file

@ -59,14 +59,14 @@ bool LOOLSession::handleInput(char *buffer, int length)
{
if (_loKitDocument)
{
app.logger().error("A document is already loaded");
sendTextFrame("error: cms=load kind=docalreadyloaded");
return false;
}
loadDocument(tokens);
}
else if (!_loKitDocument)
{
sendTextFrame("No document loaded");
sendTextFrame("error: cmd=" + tokens[0] + " kind=nodocloaded");
return false;
}
else if (tokens[0] == "status")