|
@@ -299,7 +299,7 @@ std::string BatchIoMan::printError(Json::Value root) { return std::string("Error
|
|
|
|
|
|
std::string BatchIoMan::printConnect(Json::Value root) {
|
|
|
if (!root["accept"].asBool()) {
|
|
|
- return std::string("Couldnt connect to ") + root["address"].asString() + ":" + std::to_string(root["port"].asUInt()) + "\n" +
|
|
|
+ return std::string("Couldnt connect to ") + root["address"].asString() + ":" + std::to_string(root["port"].asUInt()) + ".\n" +
|
|
|
"Reason: " + root["error"].asString();
|
|
|
}
|
|
|
return "";
|
|
@@ -393,7 +393,7 @@ std::string BatchIoMan::printPut(Json::Value root) {
|
|
|
return std::string("Upload request failed: ") + root["error"].asString();
|
|
|
}
|
|
|
} else
|
|
|
- return std::string("Begin uploading file ") + root["file"].asString();
|
|
|
+ return std::string("Begin uploading file ") + root["file"].asString() + ".";
|
|
|
}
|
|
|
|
|
|
std::string BatchIoMan::printGet(Json::Value root) {
|
|
@@ -466,7 +466,7 @@ std::string BatchIoMan::printExtendedlist(Json::Value root) {
|
|
|
std::string BatchIoMan::printVersion(Json::Value root) {
|
|
|
if (!root["accept"].asBool()) {
|
|
|
return std::string("Version check failed. Server reports version ") + root["serverversion"].asString() + " but client is " +
|
|
|
- root["clientversion"].asString();
|
|
|
+ root["clientversion"].asString() + ".";
|
|
|
} else
|
|
|
return "Version check ok.";
|
|
|
}
|
|
@@ -507,16 +507,16 @@ std::string BatchIoMan::printHead(Json::Value root) {
|
|
|
|
|
|
std::string BatchIoMan::printDeletefile(Json::Value root) {
|
|
|
if (!root["accept"].asBool())
|
|
|
- return std::string("Deletion of file ") + root["file"].asString() + " failed. " + root["error"].asString();
|
|
|
+ return std::string("Deletion of file ") + root["file"].asString() + " failed: " + root["error"].asString();
|
|
|
else
|
|
|
- return std::string("File ") + root["file"].asString() + " deleted succesfully";
|
|
|
+ return std::string("File ") + root["file"].asString() + " deleted succesfully.";
|
|
|
}
|
|
|
|
|
|
std::string BatchIoMan::printKeyfile(Json::Value root) {
|
|
|
if (!root["accept"].asBool())
|
|
|
return std::string("Couldnt select keyfile ") + root["file"].asString() + ": " + root["error"].asString();
|
|
|
else
|
|
|
- return std::string("Using keyfile ") + root["file"].asString();
|
|
|
+ return std::string("Using keyfile ") + root["file"].asString() + ".";
|
|
|
}
|
|
|
|
|
|
std::string BatchIoMan::printClosekey(Json::Value root) {
|
|
@@ -528,14 +528,14 @@ std::string BatchIoMan::printClosekey(Json::Value root) {
|
|
|
|
|
|
std::string BatchIoMan::printQueue(Json::Value root) {
|
|
|
if (!root["accept"].asBool())
|
|
|
- return std::string("Queueing of file ") + root["file"].asString() + " failed. " + root["error"].asString();
|
|
|
+ return std::string("Queueing of file ") + root["file"].asString() + " failed: " + root["error"].asString();
|
|
|
else
|
|
|
return std::string("File ") + root["file"].asString() + " queued succesfully.";
|
|
|
}
|
|
|
|
|
|
std::string BatchIoMan::printDequeue(Json::Value root) {
|
|
|
if (!root["accept"].asBool())
|
|
|
- return std::string("Dequeueing of file ") + root["file"].asString() + " failed. " + root["error"].asString();
|
|
|
+ return std::string("Dequeueing of file ") + root["file"].asString() + " failed: " + root["error"].asString();
|
|
|
else
|
|
|
return std::string("File ") + root["file"].asString() + " dequeued succesfully.";
|
|
|
}
|