From: Stefan Schantl Date: Tue, 19 Jan 2016 12:57:26 +0000 (+0100) Subject: Enhance returned error messages from Event module. X-Git-Tag: 2.0~45 X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fguardian.git;a=commitdiff_plain;h=f842727ace855a8067c1be62a263612f4e65a660 Enhance returned error messages from Event module. Add details about the used FirewallEngine, when recieving any error message from the responsible engine module. This information will be quite usefull, in error case and help to debug the main problem. Signed-off-by: Stefan Schantl --- diff --git a/modules/Events.pm b/modules/Events.pm index 67bef60..7e0b687 100644 --- a/modules/Events.pm +++ b/modules/Events.pm @@ -203,8 +203,8 @@ sub CallBlock ($@) { # If we got back an error message something went wrong. if ($error) { - # Exit function and return the error message. - return $error; + # Exit function and return the used FirewallEngine and the error message. + return "$self->{FirewallEngine} - $error"; } else { # Address has been successfully blocked, print a log message. $logger->Log("debug", "Address $address successfully has been blocked...");