mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ipblocklist.cgi: Add better messages in error case.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -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'}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user