From 4cdc24ecd6dcb90744ae8b547beaa07cfa2e0d89 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Sun, 6 Mar 2022 21:15:18 +0100 Subject: [PATCH] ipblocklist.cgi: Add better messages in error case. Signed-off-by: Stefan Schantl --- html/cgi-bin/ipblocklist.cgi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/ipblocklist.cgi b/html/cgi-bin/ipblocklist.cgi index 99ce68d17f..b4dd433afb 100644 --- a/html/cgi-bin/ipblocklist.cgi +++ b/html/cgi-bin/ipblocklist.cgi @@ -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'}"; } } } -- 2.39.5