summaryrefslogtreecommitdiffstats
path: root/src/Client/CommandManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client/CommandManager.cpp')
-rw-r--r--src/Client/CommandManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Client/CommandManager.cpp b/src/Client/CommandManager.cpp
index ad88152..f46bdcd 100644
--- a/src/Client/CommandManager.cpp
+++ b/src/Client/CommandManager.cpp
@@ -140,7 +140,7 @@ void CommandManager::daemonCommandRequestFinished(const Common::Request &request
try {
request.getResult();
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -153,7 +153,7 @@ void CommandManager::daemonFSInfoRequestFinished(const Common::Request &request)
std::cout << "Host file system usage:" << std::endl;
printFSInfo(packet);
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -166,7 +166,7 @@ void CommandManager::daemonStatusRequestFinished(const Common::Request &request)
std::cout << "Host status:" << std::endl;
printHostStatus(packet);
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -178,7 +178,7 @@ void CommandManager::disconnectRequestFinished(const Common::Request &request) {
request.getResult();
disconnect = true;
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -191,7 +191,7 @@ void CommandManager::fsInfoRequestFinished(const Common::Request &request) {
std::cout << "Server file system usage:" << std::endl;
printFSInfo(packet);
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -204,7 +204,7 @@ void CommandManager::statusRequestFinished(const Common::Request &request) {
std::cout << "Server status:" << std::endl;
printHostStatus(packet);
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -218,7 +218,7 @@ void CommandManager::userInfoRequestFinished(const Common::Request &request) {
std::cout << " " << (unsigned long)packet["uid"] << ", " << (unsigned long)packet["gid"] << ", " << (const std::string&)packet["username"] << ", "
<< (const std::string&)packet["fullName"] << std::endl << std::endl;
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}
@@ -244,7 +244,7 @@ void CommandManager::userListRequestFinished(const Common::Request &request) {
std::cout << std::endl;
}
- catch(Common::Exception &exception) {
+ catch(Net::Exception &exception) {
Common::Logger::logf(Common::Logger::ERROR, "An error occurred during your request: %s.", exception.strerror().c_str());
}