update-ids-ruleset: Improve error reporting if the system is offline

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
Stefan Schantl
2019-01-30 10:57:31 +01:00
parent e0cec9fe99
commit d6f725e185

View File

@@ -31,7 +31,7 @@ unless (-e "${General::swroot}/red/active") {
&IDS::_log_to_syslog("The system is offline.");
# Store error message for displaying in the WUI.
&IDS::_store_error_message("$Lang::tr{'could not download latest updates'}");
&IDS::_store_error_message("$Lang::tr{'could not download latest updates'} - $Lang::tr{'system is offline'}");
# Exit.
exit 0;