From: Jack Jansen Date: Fri, 12 Apr 2002 13:14:54 +0000 (+0000) Subject: Give type name when complaining about using input-only type for output X-Git-Tag: v2.3c1~6010 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=da704856941622a0d0a793069bc22f4dca28b546;p=thirdparty%2FPython%2Fcpython.git Give type name when complaining about using input-only type for output or v.v. --- diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py index 9b4f11f95d5f..51f5844268d9 100644 --- a/Tools/bgen/bgen/bgenType.py +++ b/Tools/bgen/bgen/bgenType.py @@ -115,7 +115,7 @@ class InputOnlyMixIn: "Mix-in class to boobytrap passOutput" def passOutput(self, name): - raise RuntimeError, "this type can only be used for input parameters" + raise RuntimeError, "Type '%s' can only be used for input parameters" % self.typeName class InputOnlyType(InputOnlyMixIn, Type): @@ -126,7 +126,7 @@ class OutputOnlyMixIn: "Mix-in class to boobytrap passInput" def passInput(self, name): - raise RuntimeError, "this type can only be used for output parameters" + raise RuntimeError, "Type '%s' can only be used for output parameters" % self.typeName class OutputOnlyType(OutputOnlyMixIn, Type):