X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FException.cc;h=e23357f23f95f24bfe4b4c9a083f34c126313269;hb=15ac5ae4166db4387b4a219b7c42f7fc5a9681a6;hp=28073e67e91a3704fdc941959adfda32676fc620;hpb=25fe79f266e7583750d8e761abec4022d87972b8;p=senf.git diff --git a/Utils/Exception.cc b/Utils/Exception.cc index 28073e6..e23357f 100644 --- a/Utils/Exception.cc +++ b/Utils/Exception.cc @@ -47,12 +47,11 @@ prefix_ char const * senf::Exception::what() /////////////////////////////////////////////////////////////////////////// // senf::SystemException -prefix_ void senf::SystemException::init(std::string const & where, int code) +prefix_ void senf::SystemException::init(std::string const & descr, int code) { code_ = code; - if (! where.empty()) - (*this) << where << ": "; - (*this) << "(" << code << ") " << description(); + (*this) << "[" << errorString() << "]"; + if (! descr.empty()) (*this) << " " << descr; } ///////////////////////////////cc.e////////////////////////////////////////