]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ids-functions.pl: Log correct error message if download fails
authorStefan Schantl <stefan.schantl@ipfire.org>
Fri, 17 Aug 2018 06:49:06 +0000 (08:49 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Fri, 17 Aug 2018 06:49:06 +0000 (08:49 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
config/cfgroot/ids-functions.pl

index 761b39e78d9489b1a404715d5a7d22ad1652afa3..0e1f2876b0c7d0ca0701e11817d324fc304557fc 100644 (file)
@@ -164,8 +164,11 @@ sub downloadruleset {
 
        # Check if there was any error.
        unless ($response->is_success) {
+               # Obtain error.
+               my $error = $response->content;
+
                # Log error message.
-               &_log_to_syslog("Unable to download the ruleset. $response->status_line");
+               &_log_to_syslog("Unable to download the ruleset. \($error\)");
 
                # Return "1" - false.
                return 1;