From 93db0b58d64210f14539a3c79766e810c368423a Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Fri, 14 Oct 2011 12:05:30 +0200 Subject: [PATCH] append type to error message Signed-off-by: Steven Armstrong --- lib/cdist/core/object.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cdist/core/object.py b/lib/cdist/core/object.py index a802a457..339591ad 100644 --- a/lib/cdist/core/object.py +++ b/lib/cdist/core/object.py @@ -40,7 +40,7 @@ class IllegalObjectIdError(cdist.Error): self.message = message or 'Illegal object id' 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):