From 0b3aeaca41884352096f6b2b2de04d9ea3855cd6 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 29 Jun 2015 22:50:42 +0200 Subject: [PATCH] Proper case for error messages. --- src/formdefinition.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/formdefinition.py b/src/formdefinition.py index d16bf2e..ce9607e 100644 --- a/src/formdefinition.py +++ b/src/formdefinition.py @@ -202,10 +202,10 @@ class FormDefinition(object): maxlen = field_def.get('maxlen', None) if minlen is not None and len(value) < int(minlen): - raise ValidationError("minimum length is {0}".format(minlen)) + raise ValidationError("Minimum length is {0}".format(minlen)) if maxlen is not None and len(value) > int(maxlen): - raise ValidationError("maximum length is {0}".format(maxlen)) + raise ValidationError("Maximum length is {0}".format(maxlen)) return value @@ -217,7 +217,7 @@ class FormDefinition(object): minlen = field_def.get('minlen', None) if minlen is not None and len(value) < int(minlen): - raise ValidationError("minimum length is {0}".format(minlen)) + raise ValidationError("Minimum length is {0}".format(minlen)) return value