mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-21 18:03:59 +03:00
improve error message
This commit is contained in:
parent
bfb1d69abc
commit
d42398666c
@ -183,7 +183,7 @@ impl StringSchema {
|
||||
}
|
||||
ApiStringFormat::Enum(ref stringvec) => {
|
||||
if stringvec.iter().find(|&e| *e == value) == None {
|
||||
bail!("value is not defined in the enumeration.");
|
||||
bail!("value '{}' is not defined in the enumeration.", value);
|
||||
}
|
||||
}
|
||||
ApiStringFormat::Complex(ref subschema) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user