commit 5c90303c0ae4cb7a6e3944097d4ec673a9ecbd6d
Author: Stephan Witt <[email protected]>
Date:   Tue Nov 18 08:48:02 2014 +0100

    Add diagnostic messages for enchant spell checker dictionary requests

diff --git a/src/EnchantChecker.cpp b/src/EnchantChecker.cpp
index b98cfdb..6b53d2b 100644
--- a/src/EnchantChecker.cpp
+++ b/src/EnchantChecker.cpp
@@ -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;

Reply via email to