X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FEnchantChecker.cpp;h=dc8ea4d864af9e9ff5a589a0a840583ac4f803b5;hb=57b69a5efddf9f3c148007322f00dad6c253a2ed;hp=6b53d2bac568626869012ebad9b43ea03b33b558;hpb=5c90303c0ae4cb7a6e3944097d4ec673a9ecbd6d;p=lyx.git diff --git a/src/EnchantChecker.cpp b/src/EnchantChecker.cpp index 6b53d2bac5..dc8ea4d864 100644 --- a/src/EnchantChecker.cpp +++ b/src/EnchantChecker.cpp @@ -75,10 +75,11 @@ enchant::Dict * EnchantChecker::Private::addSpeller(string const & lang) LYXERR(Debug::FILES, "request enchant speller for language " << lang); m.speller = instance->request_dict(lang); } - catch (const enchant::Exception & e) { + catch (enchant::Exception & e) { // FIXME error handling? - // unfortunately the message of enchant::Exception is unreachable - LYXERR(Debug::FILES, "cannot add enchant speller, unspecified enchant exception in request_dict()."); + const char * what = e.what(); + LYXERR(Debug::FILES, "cannot add enchant speller: " << + ((what && *what) ? what : "unspecified enchant exception in request_dict()")); m.speller = 0; } spellers_[lang] = m;