mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Show caught exception message in findAdv
This commit is contained in:
parent
4e92c34200
commit
e8099942c7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user