config: network: use error message when parsing netmask failed
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
3cd529ea51
commit
056ee78567
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user