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 <stefan.schantl@ipfire.org>
# 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...");