log to debug when make_regex_ifp catch a regex_error

This commit is contained in:
Maxime Coste 2013-03-05 19:34:57 +01:00
parent 0c4eb7a861
commit e5dc850274

View File

@ -4,6 +4,7 @@
#include "utils.hh" #include "utils.hh"
#include "file.hh" #include "file.hh"
#include "context.hh" #include "context.hh"
#include "debug.hh"
#include <dirent.h> #include <dirent.h>
#include <algorithm> #include <algorithm>
@ -22,7 +23,10 @@ static boost::regex make_regex_ifp(const String& ex)
{ {
result = boost::regex(ex.c_str()); result = boost::regex(ex.c_str());
} }
catch(boost::regex_error&) {} catch(boost::regex_error& err)
{
write_debug(err.what());
}
} }
return result; return result;
} }