]> granicus.if.org Git - python/commitdiff
Give type name when complaining about using input-only type for output
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 12 Apr 2002 13:14:54 +0000 (13:14 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 12 Apr 2002 13:14:54 +0000 (13:14 +0000)
or v.v.

Tools/bgen/bgen/bgenType.py

index 9b4f11f95d5f4cd5c94d746035ed706c7616a5b4..51f5844268d9474019ffafd7dbcd2abe22697f88 100644 (file)
@@ -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):