diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2008-09-16 05:35:22 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2008-09-16 05:35:22 +0200 |
commit | 74db15963fb9b2ddfc9d91ac5ce521425440bf8d (patch) | |
tree | d1f4012920e22da9107eb7f49e4fc5c7bfd9fa21 /src | |
parent | b021e0e33105535b85824aa0d70ecf72cc2fb251 (diff) | |
download | mad-74db15963fb9b2ddfc9d91ac5ce521425440bf8d.tar mad-74db15963fb9b2ddfc9d91ac5ce521425440bf8d.zip |
Benutze strerror bei CommandParser-Fehlermeldung
Diffstat (limited to 'src')
-rw-r--r-- | src/Client/CommandParser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Client/CommandParser.cpp b/src/Client/CommandParser.cpp index ab1165b..3cb5749 100644 --- a/src/Client/CommandParser.cpp +++ b/src/Client/CommandParser.cpp @@ -203,8 +203,7 @@ void CommandParser::daemonStatusRequestFinished(const Net::Packets::HostStatusPa } void CommandParser::errorCallback(const Common::Exception &exception) { - std::cerr << "An error occurred during your request." << std::endl; - std::cerr << "Error code: " << exception.getErrorCode() << std::endl << std::endl; + std::cerr << "An error occurred during your request: " << exception.strerror() << "." << std::endl << std::endl; requestFinished(); } |