Improve error messages

This commit is contained in:
Konstantin Bogdanov 2024-08-26 20:45:25 +02:00
parent 07cb5b27eb
commit fb3c4671f0
No known key found for this signature in database

View File

@ -152,7 +152,12 @@ def check_iptables_legacy():
if "legacy" in file_info_str: if "legacy" in file_info_str:
print( print(
"iptables is in 'legacy' mode. This is not supported. Please switch to 'nftables' mode." """
iptables is in 'legacy' mode. This is not supported.
Please switch to 'nftables' mode, usualy by installing `iptables-nft` or `nftables`, consult your distribution manual.
Or, use --ignore-iptables-legacy-check.
"""
) )
sys.exit(1) sys.exit(1)
@ -164,7 +169,12 @@ def check_iptables_legacy():
if "legacy" in file_info_str: if "legacy" in file_info_str:
print( print(
"ip6tables is in 'legacy' mode. This is not supported. Please switch to 'nftables' mode." """
ip6tables is in 'legacy' mode. This is not supported.
Please switch to 'nftables' mode, usualy by installing `iptables-nft` or `nftables`, consult your distribution manual.
Or, use --ignore-iptables-legacy-check.
"""
) )
sys.exit(1) sys.exit(1)