]> git.proxmox.com Git - proxmox-backup.git/commitdiff
improve error message
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 30 Nov 2018 11:07:27 +0000 (12:07 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 30 Nov 2018 11:07:27 +0000 (12:07 +0100)
src/api/schema.rs

index c2a365e8a0c9bab372292823a7fa0f781a78749a..e01f18af18b72d6a5eface347f9c4ca7603b28fd 100644 (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) => {