Let's make this error message a *tad* more useful.

This commit is contained in:
James Vega 2005-01-14 02:20:53 +00:00
parent 9e4066fd95
commit 80f9f7d42a

View File

@ -309,9 +309,9 @@ class Value(Group):
if self.__doc__:
s = self.__doc__
else:
s = """Invalid registry value. If you're getting this message,
s = """%s has no docstring. If you're getting this message,
report it, because we forgot to put a proper help string here."""
e = InvalidRegistryValue(utils.normalizeWhitespace(s))
e = InvalidRegistryValue(utils.normalizeWhitespace(s % self._name))
e.value = self
raise e