improve error message

This commit is contained in:
Dietmar Maurer 2018-11-30 12:07:27 +01:00
parent bfb1d69abc
commit d42398666c
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {