summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2005-02-16 02:53:55 +0000
committerivan <ivan>2005-02-16 02:53:55 +0000
commitc40e3c171c9ca3cda8f35df2975c476b9102bac9 (patch)
tree2c594729a6af542060133cbc057465189fe55b39
parent95bde106219526479826d9ea0d3ad85ba850867b (diff)
slightly better error messages for LaTeX problems
-rw-r--r--FS/FS/cust_bill.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 4cc63d962..038ed69b4 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1543,12 +1543,12 @@ sub print_ps {
my $sfile = shell_quote $file;
system("pslatex $sfile.tex >/dev/null 2>&1") == 0
- or die "pslatex $file.tex failed: $!";
+ or die "pslatex $file.tex failed; see $file.log for details?\n";
system("pslatex $sfile.tex >/dev/null 2>&1") == 0
- or die "pslatex $file.tex failed: $!";
+ or die "pslatex $file.tex failed; see $file.log for details?\n";
system('dvips', '-q', '-t', 'letter', "$file.dvi", '-o', "$file.ps" ) == 0
- or die "dvips failed: $!";
+ or die "dvips failed";
open(POSTSCRIPT, "<$file.ps")
or die "can't open $file.ps: $! (error in LaTeX template?)\n";