Give type name when complaining about using input-only type for output

or v.v.
This commit is contained in:
Jack Jansen 2002-04-12 13:14:54 +00:00
parent 0036cbae58
commit da70485694
1 changed files with 2 additions and 2 deletions

View 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):