Browse Source

[3114] Update exception messages

Mukund Sivaraman 11 years ago
parent
commit
9ad9193ea3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/python/isc/config/config_data.py

+ 2 - 2
src/lib/python/isc/config/config_data.py

@@ -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: