]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki.pm
useragent: Raise an exception if the LWP module can't be loaded
[git.ikiwiki.info.git] / IkiWiki.pm
index 6aa49229ace4ba23c68267ca942786da445526ac..f916a566db4c65760b3f4203c89095887d27fcf5 100644 (file)
@@ -2448,6 +2448,9 @@ sub add_autofile ($$$) {
 }
 
 sub useragent () {
+       eval q{use LWP};
+       error($@) if $@;
+
        return LWP::UserAgent->new(
                cookie_jar => $config{cookiejar},
                env_proxy => 1,         # respect proxy env vars