From f842727ace855a8067c1be62a263612f4e65a660 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Tue, 19 Jan 2016 13:57:26 +0100 Subject: [PATCH 1/1] 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 --- modules/Events.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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..."); -- 2.39.2