Add diagnostic messages for enchant spell checker dictionary requests

This commit is contained in:
Stephan Witt 2014-11-18 08:48:02 +01:00
parent 937a52b64d
commit 5c90303c0a

View File

@ -72,10 +72,13 @@ enchant::Dict * EnchantChecker::Private::addSpeller(string const & lang)
Speller m; Speller m;
try { try {
LYXERR(Debug::FILES, "request enchant speller for language " << lang);
m.speller = instance->request_dict(lang); m.speller = instance->request_dict(lang);
} }
catch (const enchant::Exception & e) { catch (const enchant::Exception & e) {
// FIXME error handling? // 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; m.speller = 0;
} }
spellers_[lang] = m; spellers_[lang] = m;