]> git.lyx.org Git - lyx.git/commitdiff
Add diagnostic messages for enchant spell checker dictionary requests
authorStephan Witt <switt@lyx.org>
Tue, 18 Nov 2014 07:48:02 +0000 (08:48 +0100)
committerStephan Witt <switt@lyx.org>
Tue, 18 Nov 2014 07:48:41 +0000 (08:48 +0100)
src/EnchantChecker.cpp

index b98cfdb9294d3c443bc24fec083608a3487a0639..6b53d2bac568626869012ebad9b43ea03b33b558 100644 (file)
@@ -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;