mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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]
|
props = prefetch[href]
|
||||||
|
|
||||||
assert props['href'] == href
|
assert props['href'] == href
|
||||||
if props.setdefault('etag', etag) != etag:
|
old_etag = props.setdefault('etag', etag)
|
||||||
raise SyncError('Etag changed during sync.')
|
if old_etag != etag:
|
||||||
|
raise SyncError(
|
||||||
|
'Etag changed during sync: Expected {!r}, got {!r}'
|
||||||
|
.format(old_etag, etag)
|
||||||
|
)
|
||||||
props['item'] = item
|
props['item'] = item
|
||||||
props['ident'] = ident = item.ident
|
props['ident'] = ident = item.ident
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue