Show GUID on object errors

This commit is contained in:
Adrià Mercader 2011-04-19 17:16:25 +01:00
parent c9d43b2e4d
commit 43453b6938
1 changed files with 3 additions and 1 deletions

View File

@ -74,7 +74,9 @@ def _get_source_status(source):
out['last_harvest_errors'].append(gather_error.message)
for object_error in object_errors:
out['last_harvest_errors'].append(object_error.message)
msg = 'GUID %s: %s' % (object_error.object.guid,object_error.message)
out['last_harvest_errors'].append(msg)
# Overall statistics