Minor changes.

This commit is contained in:
vng 2014-08-18 20:59:26 +03:00 committed by Alex Zolotarev
parent 64166a99e9
commit 6a8af229df
2 changed files with 5 additions and 4 deletions

View file

@ -28,12 +28,13 @@ namespace indexer
}
catch (Reader::Exception const & e)
{
LOG(LERROR, ("Error while reading file: ", e.what()));
LOG(LERROR, ("Error while reading file: ", e.Msg()));
return false;
}
catch (Writer::Exception const & e)
{
LOG(LERROR, ("Error writing index file: ", e.what()));
LOG(LERROR, ("Error writing index file: ", e.Msg()));
return false;
}
return true;

View file

@ -433,12 +433,12 @@ bool indexer::BuildSearchIndexFromDatFile(string const & fName, bool forceRebuil
}
catch (Reader::Exception const & e)
{
LOG(LERROR, ("Error while reading file: ", e.what()));
LOG(LERROR, ("Error while reading file: ", e.Msg()));
return false;
}
catch (Writer::Exception const & e)
{
LOG(LERROR, ("Error writing index file: ", e.what()));
LOG(LERROR, ("Error writing index file: ", e.Msg()));
return false;
}