From 1f3b2df52f9053ea26fd3fa2ac9f5fed08cac020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Nicouleaud?= Date: Wed, 24 Jan 2018 15:04:49 +0100 Subject: [PATCH] core/remote: Log & comment ENOENT + _deleted behavior --- core/remote/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/remote/index.js b/core/remote/index.js index 041c9f3c6..c37ca7f32 100644 --- a/core/remote/index.js +++ b/core/remote/index.js @@ -97,7 +97,8 @@ export default class Remote implements Side { stream = await this.other.createReadStreamAsync(doc) } catch (err) { if (err.code === 'ENOENT') { - doc._deleted = true + log.warn({path}, 'Local file does not exist anymore.') + doc._deleted = true // XXX: This prevents the doc to be saved with new revs return doc } throw err