]> git.lyx.org Git - features.git/commit
Exit with error if child exits with error (#10188)
authorScott Kostyshak <skostysh@lyx.org>
Fri, 2 Sep 2016 21:10:41 +0000 (17:10 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 2 Sep 2016 22:24:14 +0000 (18:24 -0400)
commit1a374a931b7f72313df61c001f5275480b759c4c
treefea16af343fdafb6decaa808aa16bfd56e43e969
parent7fd60406dfa49af75265a1898f9c151650528a83
Exit with error if child exits with error (#10188)

Before, it could have been the case that

  lyx -e pdf2 file.lyx

had exit code 0 even though file.lyx includes a file that exits with
error. If compiled in the GUI a warning was given, but from the
command line exit code it would seem there was no problem. The exit
code for this case is now non-zero and the word "Warning" is now
removed from the message because it should be treated as an error.

An exception is thrown from InsetInclude and is caught in
Buffer::makeLaTeXFile() and added to the error list.

The (similar) use case at #8840 is also fixed by this commit.
src/insets/InsetInclude.cpp