X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/bd1ece25ff151772844eb6318f02ade2470602db..d232a24687ea63a0f57723b7730d82f12241cec9:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 14e3ed20f..e841771b6 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1537,12 +1537,17 @@ sub generate_email_subject { sub cleanup { $main::lxdebug->enter_sub(); - my $self = shift; + my ($self, $application) = @_; + + my $error_code = $?; chdir("$self->{tmpdir}"); my @err = (); - if (-f "$self->{tmpfile}.err") { + if ((-1 == $error_code) || (127 == (($error_code) >> 8))) { + push @err, $::locale->text('The application "#1" was not found on the system.', $application || 'pdflatex') . ' ' . $::locale->text('Please contact your administrator.'); + + } elsif (-f "$self->{tmpfile}.err") { open(FH, "$self->{tmpfile}.err"); @err = ; close(FH);