From: Mukund Sivaraman Date: Wed, 20 Nov 2013 13:35:09 +0000 (+0530) Subject: [3114] Update exception messages X-Git-Tag: bind10-1.2.0beta1-release~102^2~19^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ad9193ea3565d71a2c7a5fb7eff225be8c8e2ab;p=thirdparty%2Fkea.git [3114] Update exception messages --- diff --git a/src/lib/python/isc/config/config_data.py b/src/lib/python/isc/config/config_data.py index d42e1fc99c..e2b135799a 100644 --- a/src/lib/python/isc/config/config_data.py +++ b/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: