mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Show differing etags in error msg
This commit is contained in:
parent
1182350af3
commit
4b41f4050f
1 changed files with 6 additions and 2 deletions
|
|
@ -112,8 +112,12 @@ class StorageSyncer(object):
|
|||
props = prefetch[href]
|
||||
|
||||
assert props['href'] == href
|
||||
if props.setdefault('etag', etag) != etag:
|
||||
raise SyncError('Etag changed during sync.')
|
||||
old_etag = props.setdefault('etag', etag)
|
||||
if old_etag != etag:
|
||||
raise SyncError(
|
||||
'Etag changed during sync: Expected {!r}, got {!r}'
|
||||
.format(old_etag, etag)
|
||||
)
|
||||
props['item'] = item
|
||||
props['ident'] = ident = item.ident
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue