From d42398666c0e591f25434e6cc863d3e8e670a3d7 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Fri, 30 Nov 2018 12:07:27 +0100 Subject: [PATCH] improve error message --- src/api/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {