Skip to content

Commit f88f11b

Browse files
committed
Bug 7963 follow-up: die nicely if AnyEvent libraries not installed
Signed-off-by: Frédéric Demians <[email protected]> Signed-off-by: Paul Poulain <[email protected]>
1 parent 1e1422e commit f88f11b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/cronjobs/check-url-quick.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
use Getopt::Long;
2323
use C4::Context;
2424
use C4::Biblio;
25-
use AnyEvent;
26-
use AnyEvent::HTTP;
25+
eval { require AnyEvent } or die "This script requires AnyEvent perl library. Use check-url.pl if you can't install AnyEvent" ;
26+
eval { require AnyEvent::HTTP } or die "This script requires AnyEvent::HTTP perl library. Use check-url.pl if you can't install AnyEvent::HTTP" ;
2727

2828
my ( $verbose, $help, $html ) = ( 0, 0, 0 );
2929
my ( $host, $host_intranet ) = ( '', '' );

0 commit comments

Comments
 (0)