suppress ENOENT on metadata when restoring archived files

This commit is contained in:
ansuz 2020-12-11 20:12:36 +05:30
parent 4c7f7e271e
commit de90949e3e
1 changed files with 2 additions and 2 deletions

View File

@ -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();