From e5dc850274ad87456170241d61bdd8d031d6fbce Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 5 Mar 2013 19:34:57 +0100 Subject: [PATCH] log to debug when make_regex_ifp catch a regex_error --- src/completion.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/completion.cc b/src/completion.cc index ad66ee3c..99801cdc 100644 --- a/src/completion.cc +++ b/src/completion.cc @@ -4,6 +4,7 @@ #include "utils.hh" #include "file.hh" #include "context.hh" +#include "debug.hh" #include #include @@ -22,7 +23,10 @@ static boost::regex make_regex_ifp(const String& ex) { result = boost::regex(ex.c_str()); } - catch(boost::regex_error&) {} + catch(boost::regex_error& err) + { + write_debug(err.what()); + } } return result; }