From 3db74fa92d9acd784b271b01c473f69c36311777 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Fri, 10 Mar 2017 17:11:58 -0500 Subject: [PATCH] When catching exception, give error on STDERR 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index b220ee33e7..84b5e6ced5 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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 (...) { -- 2.39.2