]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ipblocklist.cgi: Add better messages in error case.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 6 Mar 2022 20:15:18 +0000 (21:15 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 7 Jul 2022 15:26:14 +0000 (17:26 +0200)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
html/cgi-bin/ipblocklist.cgi

index 99ce68d17fe5f778ceceff3b18689e2168b4d6f2..b4dd433afb6e58cdf51e78085bdbc030243fc297 100644 (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'}";
                        }
                }
        }