commit e8099942c7b7464895545959b346028a298f8bd7
Author: Yuriy Skalko <[email protected]>
Date: Mon Jan 4 15:41:53 2021 +0200
Show caught exception message in findAdv
---
src/lyxfind.cpp | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp
index c728af1..ef4777b 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;
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs