]> git.lyx.org Git - features.git/commitdiff
When catching exception, give error on STDERR
authorScott Kostyshak <skostysh@lyx.org>
Fri, 10 Mar 2017 22:11:58 +0000 (17:11 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sat, 11 Mar 2017 07:56:31 +0000 (02:56 -0500)
The error is reported in the GUI, but for the terminal we must write
explicitly to STDERR.

For a specific example of this type of exception, see the previous
commit, 72c3dbd.

src/Buffer.cpp

index b220ee33e7959751ec2f7280913309dba9dec4b2..84b5e6ced529dd6d6d1c87379490d9eb4664bac2 100644 (file)
@@ -1741,6 +1741,7 @@ bool Buffer::makeLaTeXFile(FileName const & fname,
        catch (exception const & e) {
                errorList.push_back(ErrorItem(_("conversion failed"),
                                              _(e.what())));
+               lyxerr << e.what() << endl;
                failed_export = true;
        }
        catch (...) {