From 74db15963fb9b2ddfc9d91ac5ce521425440bf8d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 16 Sep 2008 05:35:22 +0200 Subject: Benutze strerror bei CommandParser-Fehlermeldung --- src/Client/CommandParser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Client/CommandParser.cpp') 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(); } -- cgit v1.2.3