better error on duplicate

This commit is contained in:
James Turk 2012-03-07 11:07:30 -05:00
parent 8c589c1ccd
commit 8e4c020f8f

View File

@ -111,7 +111,8 @@ class Kernel(object):
else:
self.log('track', url=url, error='tracking conflict')
raise ValueError('%s is already tracked with different '
'metadata' % url)
'metadata: (tracked: %r) (new: %r)' %
(url, tracked['metadata'], kwargs)
self.log('track', url=url)