X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FConsole%2FParse.cc;h=7f0c5ba5f26816f8c32d351ddc3f554dfba6cefc;hb=d80f142699130075658d6448c90adf71338f2c5a;hp=5cd4e4c577d28d31a0b92df740b21832985e0a34;hpb=8ce5d6817ae748496d7db06ff4b35ad496fa3d21;p=senf.git diff --git a/senf/Utils/Console/Parse.cc b/senf/Utils/Console/Parse.cc index 5cd4e4c..7f0c5ba 100644 --- a/senf/Utils/Console/Parse.cc +++ b/senf/Utils/Console/Parse.cc @@ -373,16 +373,16 @@ prefix_ void senf::console::CommandParser::parseFile(std::string const & filenam // so we check the file size before struct stat statBuf; if (stat( filename.c_str(), &statBuf) != 0) - throw SystemException(errno SENF_EXC_DEBUGINFO); + throw SystemException(filename, errno SENF_EXC_DEBUGINFO); if (statBuf.st_size == 0) return; boost::spirit::file_iterator<> i (filename); if (!i) { if (errno == 0) // hmm.. errno==0 but the file_iterator is false; something is wrong but we // do not know what exactly, so we throw a SystemeException with EINVAL - throw SystemException(EINVAL SENF_EXC_DEBUGINFO); + throw SystemException(filename, EINVAL SENF_EXC_DEBUGINFO); else - throw SystemException(errno SENF_EXC_DEBUGINFO); + throw SystemException(filename, errno SENF_EXC_DEBUGINFO); } boost::spirit::file_iterator<> const i_end (i.make_end()); parseLoop(i, i_end, filename, cb);