include type name in error message
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
f285d9e64e
commit
1c84e423d1
2 changed files with 6 additions and 5 deletions
|
|
@ -116,9 +116,9 @@ def run(argv):
|
|||
# no object id, must be singleton
|
||||
requirement_object_id = 'singleton'
|
||||
if requirement_object_id.startswith('/'):
|
||||
raise core.IllegalObjectIdError(requirement_object_id, 'object_id may not start with /')
|
||||
raise core.IllegalObjectIdError(requirement_object_id, requirement_type_name, 'object_id may not start with /')
|
||||
log.debug("Recording requirement: %s -> %s" % (cdist_object.path, requirement))
|
||||
cdist_object.requirements.append(rement_object_id)
|
||||
cdist_object.requirements.append(requirement)
|
||||
|
||||
# Record / Append source
|
||||
cdist_object.source.append(object_source)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue