From 88daf7eb3a9ba5ceb3df9f8197ea3cb5cfd4f30b Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Fri, 17 Aug 2018 08:49:06 +0200 Subject: [PATCH] ids-functions.pl: Log correct error message if download fails Signed-off-by: Stefan Schantl --- config/cfgroot/ids-functions.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/cfgroot/ids-functions.pl b/config/cfgroot/ids-functions.pl index 761b39e78d..0e1f2876b0 100644 --- a/config/cfgroot/ids-functions.pl +++ b/config/cfgroot/ids-functions.pl @@ -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; -- 2.39.5