From de90949e3e52002bf8f82b5f657f8bbde84f5528 Mon Sep 17 00:00:00 2001 From: ansuz Date: Fri, 11 Dec 2020 20:12:36 +0530 Subject: [PATCH] suppress ENOENT on metadata when restoring archived files --- lib/storage/file.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/storage/file.js b/lib/storage/file.js index 4fbb52b52..d890cb0b9 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -722,9 +722,9 @@ var unarchiveChannel = function (env, channelName, cb) { // restore the metadata log Fse.move(archiveMetadataPath, metadataPath, w(function (err) { // if there's nothing to move, you're done. - /*if (err && err.code === 'ENOENT') { + if (err && err.code === 'ENOENT') { return CB(); - }*/ // XXX make sure removing this part won't break anything + } // call back with an error if something goes wrong if (err) { w.abort();