summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-04-12 13:14:54 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-04-12 13:14:54 (GMT)
commitda704856941622a0d0a793069bc22f4dca28b546 (patch)
treecaad548a91616fea3b224848f31d2b6f5eed5f0a /Tools
parent0036cbae58a22b2bc8ae2673ae30c0c24a8c1a00 (diff)
downloadcpython-da704856941622a0d0a793069bc22f4dca28b546.zip
cpython-da704856941622a0d0a793069bc22f4dca28b546.tar.gz
cpython-da704856941622a0d0a793069bc22f4dca28b546.tar.bz2
Give type name when complaining about using input-only type for output
or v.v.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/bgen/bgen/bgenType.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/bgen/bgen/bgenType.py b/Tools/bgen/bgen/bgenType.py
index 9b4f11f..51f5844 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):