@@ -12,6 +12,7 @@ BatchIoMan::BatchIoMan(bool usessl, const char *certfile, bool beverbose, std::s
/* initialize print command map */
printmap["error"] = &BatchIoMan::printError;
+ printmap["connectionerror"] = &BatchIoMan::printError;
printmap["connect"] = &BatchIoMan::printConnect;
printmap["help"] = &BatchIoMan::printHelp;
printmap["status"] = &BatchIoMan::printStatus;
@@ -594,7 +594,7 @@ void IoMan::run() {
// cmdman gets informed inside disconnect method
// inform the user by giving output
Json::Value root;
- root["command"] = "error";
+ root["command"] = "connectionerror";
root["error"] = "The server does not respond. You are now disconnected.";
printMessage(Json::writeString(wbuilder, root), normal);
@@ -13,6 +13,7 @@ UserIoMan::UserIoMan(bool usessl, const char *certfile, bool beverbose) : IoMan(
printmap["error"] = &UserIoMan::printError;
+ printmap["connectionerror"] = &UserIoMan::printError;
printmap["connect"] = &UserIoMan::printConnect;
printmap["help"] = &UserIoMan::printHelp;
printmap["extendedstatus"] = &UserIoMan::printExtendedstatus;