X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FConsole%2FServer.cc;h=b3bf694ea06bf28bc55d66250bafe766f9c3adc7;hb=a726ae0cb14d0ce37e5aab3c4e07121bbbd3b31c;hp=d3261331bc6c3b71f05067576bf0921eb58c641b;hpb=368058ef8f5eb65ea7e210351af25f49ddd0f342;p=senf.git diff --git a/Utils/Console/Server.cc b/Utils/Console/Server.cc index d326133..b3bf694 100644 --- a/Utils/Console/Server.cc +++ b/Utils/Console/Server.cc @@ -291,7 +291,11 @@ prefix_ std::string::size_type senf::console::Client::handleInput(std::string da handle_.facet().shutdown(senf::TCPSocketProtocol::ShutRD); } catch (std::exception & ex) { - stream() << ex.what() << std::endl; + std::string msg (ex.what()); + std::string::size_type i (msg.find("-- \n")); + if (i != std::string::npos) + msg = msg.substr(i+4); + stream() << msg << std::endl; } catch (...) { stream() << "unidentified error (unknown exception thrown)" << std::endl;