mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Add diagnostic messages for enchant spell checker dictionary requests
This commit is contained in:
parent
937a52b64d
commit
5c90303c0a
@ -72,10 +72,13 @@ enchant::Dict * EnchantChecker::Private::addSpeller(string const & lang)
|
||||
Speller m;
|
||||
|
||||
try {
|
||||
LYXERR(Debug::FILES, "request enchant speller for language " << lang);
|
||||
m.speller = instance->request_dict(lang);
|
||||
}
|
||||
catch (const 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().");
|
||||
m.speller = 0;
|
||||
}
|
||||
spellers_[lang] = m;
|
||||
|
Loading…
Reference in New Issue
Block a user