X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FModuleList.cpp;h=e53af9b7e9f98d12dc315eefdcc17571cdbb5641;hb=ad91dd139c4d6665704b11d9bd34770c3b769543;hp=90e23c493b9a193c1f6d718907affc04511137c4;hpb=45bc27809bae95259e251a2215b39f945d8835ca;p=lyx.git diff --git a/src/ModuleList.cpp b/src/ModuleList.cpp index 90e23c493b..e53af9b7e9 100644 --- a/src/ModuleList.cpp +++ b/src/ModuleList.cpp @@ -82,27 +82,23 @@ bool ModuleList::load() LYXERR(Debug::TCLASS, "Reading modules from `" << real_file << '\''); if (real_file.empty()) { - lyxerr << "ModuleList::load(): unable to find " - "modules file `" - << to_utf8(makeDisplayPath(real_file.absFilename(), 1000)) - << "'.\nNo modules will be available." << endl; + LYXERR0("unable to find modules file `" + << to_utf8(makeDisplayPath(real_file.absFilename(), 1000)) + << "'.\nNo modules will be available."); return false; } Lexer lex; if (!lex.setFile(real_file)) { - lyxerr << "ModuleList::load():" - "lyxlex was not able to set file: " - << real_file << ".\nNo modules will be available." << endl; + LYXERR0("lyxlex was not able to set file: " + << real_file << ".\nNo modules will be available."); return false; } if (!lex.isOK()) { - lyxerr << "ModuleList::load():" << - "unable to open modules file `" - << to_utf8(makeDisplayPath(real_file.absFilename(), 1000)) - << "'\nNo modules will be available." - << endl; + LYXERR0("unable to open modules file `" + << to_utf8(makeDisplayPath(real_file.absFilename(), 1000)) + << "'\nNo modules will be available."); return false; }