From 80f9f7d42ac6c616c260a8907d5da39bc620434d Mon Sep 17 00:00:00 2001 From: James Vega Date: Fri, 14 Jan 2005 02:20:53 +0000 Subject: [PATCH] Let's make this error message a *tad* more useful. --- src/registry.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registry.py b/src/registry.py index 62b896060..dcdb281d9 100644 --- a/src/registry.py +++ b/src/registry.py @@ -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