Errors: Print a URL with a hash of the format string to find more information about an error.

This commit is contained in:
Ali Saidi
2009-01-30 20:04:15 -05:00
parent 35a85a4e86
commit f4291aac25
7 changed files with 47 additions and 21 deletions

View File

@@ -327,8 +327,8 @@ class CheckedIntType(MetaParamValue):
if not (hasattr(cls, 'min') and hasattr(cls, 'max')):
if not (hasattr(cls, 'size') and hasattr(cls, 'unsigned')):
panic("CheckedInt subclass %s must define either\n" \
" 'min' and 'max' or 'size' and 'unsigned'\n" \
% name);
" 'min' and 'max' or 'size' and 'unsigned'\n",
name);
if cls.unsigned:
cls.min = 0
cls.max = 2 ** cls.size - 1