diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index c728af1cef..ef4777b11c 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -4115,9 +4115,8 @@ bool findAdv(BufferView * bv, FindAndReplaceOptions const & opt) match_len = findForwardAdv(cur, matchAdv); else match_len = findBackwardsAdv(cur, matchAdv); - } catch (...) { - // This may only be raised by lyx::regex() - bv->message(_("Invalid regular expression!")); + } catch (exception & ex) { + bv->message(from_ascii(ex.what())); return false; }