X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/77c9d23bd0a434fc43980fade917ade3f4283ad5..375f824f70509fa537c4342c4a0d14204f35e767:/bin/mozilla/letter.pl diff --git a/bin/mozilla/letter.pl b/bin/mozilla/letter.pl index 18564d3c8..710cf8a19 100755 --- a/bin/mozilla/letter.pl +++ b/bin/mozilla/letter.pl @@ -371,8 +371,11 @@ sub print_letter { ); my $pdf_file_name; eval { - $pdf_file_name = SL::Helper::CreatePDF->create_pdf(%create_params); + # catch LaTeX template not found error + my $tex_templates = $::instance_conf->get_templates . '/letter.tex'; + die( t8('Please create/copy a template named letter.tex in your client template dir') ) unless (-e $tex_templates); + $pdf_file_name = SL::Helper::CreatePDF->create_pdf(%create_params); if ( $::form->{media} eq 'email') { my $mail = Mailer->new; my $signature = $::myconfig{signature};