diff options
author | mark <mark> | 2011-01-20 01:24:36 +0000 |
---|---|---|
committer | mark <mark> | 2011-01-20 01:24:36 +0000 |
commit | ee89293005890426307ab428a16e5c6132465bbe (patch) | |
tree | 3f5f4966618da0166fdd4cb2266a45ce4f1547a8 /FS | |
parent | 7b512e03e15ee791db801f59cdddb76052224126 (diff) |
better error message
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/bill_batch.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/bill_batch.pm b/FS/FS/bill_batch.pm index 136db0d9e..00aab7ed2 100644 --- a/FS/FS/bill_batch.pm +++ b/FS/FS/bill_batch.pm @@ -54,7 +54,10 @@ Typeset the entire batch as a PDF file. Returns the PDF as a string. sub print_pdf { eval 'use CAM::PDF'; - warn "Failed to load CAM::PDF: '$@'\n" if $@; + if ( $@ ) { + die "CAM::PDF not installed\n" if $@ =~ /^Can't locate/; + die "Failed to load CAM::PDF: '$@'\n"; + } my $self = shift; my $job = shift; |