]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3114] Update exception messages
authorMukund Sivaraman <muks@isc.org>
Wed, 20 Nov 2013 13:35:09 +0000 (19:05 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 20 Nov 2013 13:35:09 +0000 (19:05 +0530)
src/lib/python/isc/config/config_data.py

index d42e1fc99c24b152aec0a1e63b0d556e89c58a8d..e2b135799a30ce5e918592ed0d30c5c1e67a59a1 100644 (file)
@@ -67,12 +67,12 @@ def check_type(spec_part, value):
         if type(value) != int:
             raise isc.cc.data.DataTypeError(str(value) + " is not an integer")
         if value > sys.maxsize:
-            raise isc.cc.data.DataTypeError(str(value) + " is a too large integer")
+            raise isc.cc.data.DataTypeError(str(value) + " is too large an integer")
     elif data_type == "real":
         if type(value) != float:
             raise isc.cc.data.DataTypeError(str(value) + " is not a real")
         if float(value) > sys.float_info.max:
-            raise isc.cc.data.DataTypeError(str(value) + " is a too large float")
+            raise isc.cc.data.DataTypeError(str(value) + " is too large a float")
     elif data_type == "boolean" and type(value) != bool:
         raise isc.cc.data.DataTypeError(str(value) + " is not a boolean")
     elif data_type == "string" and type(value) != str: