ipblocklist.cgi: Add better messages in error case.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2022-03-06 21:15:18 +01:00
parent c0472dcf2a
commit a72c2458c4

View File

@@ -105,11 +105,10 @@ if ($cgiparams{'ACTION'} eq "$Lang::tr{'save'}") {
my $status = &IPblocklist::download_and_create_blocklist($missing_blocklist);
# Check if there was an error during download.
# XXX - fill with messages.
if ($status eq "dl_error") {
$errormessage = "XXX - dl_error";
$errormessage = "$Lang::tr{'ipblocklist could not download blocklist'} - $Lang::tr{'ipblocklist download error'}";
} elsif ($status eq "empty_list") {
$errormessage = "XXX - empty";
$errormessage = "$Lang::tr{'ipblocklist could not download blocklist'} - $Lang::tr{'ipblocklist empty blocklist received'}";
}
}
}