append type to error message

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-10-14 12:05:30 +02:00
parent f76a5abf6f
commit 93db0b58d6

View file

@ -40,7 +40,7 @@ class IllegalObjectIdError(cdist.Error):
self.message = message or 'Illegal object id' self.message = message or 'Illegal object id'
def __str__(self): def __str__(self):
return '%s: %s' % (self.message, os.path.join(self.type_name, self.object_id)) return '%s: type: %s, object_id: %s' % (self.message, self.type_name, self.object_id)
class Object(object): class Object(object):