update invalid's message and display all informations when raises
This commit is contained in:
@@ -925,11 +925,11 @@ class NetmaskOption(Option):
|
||||
except ValueError:
|
||||
if not make_net:
|
||||
msg = _("invalid network {0} ({1}) "
|
||||
"with netmask {2} ({3}),"
|
||||
"with netmask {2},"
|
||||
" this network is an IP")
|
||||
else:
|
||||
if make_net:
|
||||
msg = _("invalid IP {0} ({1}) with netmask {2} ({3}),"
|
||||
msg = _("invalid IP {0} ({1}) with netmask {2},"
|
||||
" this IP is a network")
|
||||
|
||||
except ValueError:
|
||||
|
Reference in New Issue
Block a user