diff --git a/packages/node_modules/pouchdb-replication/src/sync.js b/packages/node_modules/pouchdb-replication/src/sync.js index e6beef9972..bb64a20729 100644 --- a/packages/node_modules/pouchdb-replication/src/sync.js +++ b/packages/node_modules/pouchdb-replication/src/sync.js @@ -60,18 +60,18 @@ class Sync extends EE { doc }); }; - const pushPaused = () => { + const pushPaused = (err) => { this.pushPaused = true; /* istanbul ignore if */ if (this.pullPaused) { - this.emit('paused'); + this.emit('paused',err); } }; - const pullPaused = () => { + const pullPaused = (err) => { this.pullPaused = true; /* istanbul ignore if */ if (this.pushPaused) { - this.emit('paused'); + this.emit('paused',err); } }; const pushActive = () => {