diff options
author | Norbert Preining <preining@logic.at> | 2009-12-06 10:21:38 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2009-12-06 10:21:38 +0000 |
commit | 9ed40cb45fbe59cb710db0bc64a9515fedd9320a (patch) | |
tree | b1d72c127be77db8f66d3f64534bfc52e49e51e4 | |
parent | fd0706fa84d8c2ab089e13726b0170e8a5ff883a (diff) |
try to pass on error codes to the GUI if we use it
git-svn-id: svn://tug.org/texlive/trunk@16314 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl index ad8576e25a8..7f5cbb4d72c 100755 --- a/Master/texmf/scripts/texlive/tlmgr.pl +++ b/Master/texmf/scripts/texlive/tlmgr.pl @@ -472,7 +472,9 @@ sub execute_action { my $error_count = &handle_execute_actions(); # done, just in case there are 256 errors. - finish($error_count ? 1 : 0); + # we return here, because finish might return if we are running + # in the GUI, and we want to pass the error count on to the GUI + return finish($error_count ? 1 : 0); } |