diff --git a/src/api/schema.rs b/src/api/schema.rs index c2a365e8..e01f18af 100644 --- a/src/api/schema.rs +++ b/src/api/schema.rs @@ -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) => {