config: network: use error message when parsing netmask failed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-02 18:52:47 +01:00
parent 3cd529ea51
commit 056ee78567

View File

@ -96,7 +96,7 @@ impl <R: BufRead> NetworkParser<R> {
match u8::from_str_radix(netmask.as_str(), 10) { match u8::from_str_radix(netmask.as_str(), 10) {
Ok(mask) => mask, Ok(mask) => mask,
Err(err) => { Err(err) => {
bail!("unable to parse netmask '{}'", netmask); bail!("unable to parse netmask '{}' - {}", netmask, err);
} }
} }
}; };