suppress ENOENT on metadata when restoring archived files

pull/1/head
ansuz 4 years ago
parent 4c7f7e271e
commit de90949e3e

@ -722,9 +722,9 @@ var unarchiveChannel = function (env, channelName, cb) {
// restore the metadata log // restore the metadata log
Fse.move(archiveMetadataPath, metadataPath, w(function (err) { Fse.move(archiveMetadataPath, metadataPath, w(function (err) {
// if there's nothing to move, you're done. // if there's nothing to move, you're done.
/*if (err && err.code === 'ENOENT') { if (err && err.code === 'ENOENT') {
return CB(); return CB();
}*/ // XXX make sure removing this part won't break anything }
// call back with an error if something goes wrong // call back with an error if something goes wrong
if (err) { if (err) {
w.abort(); w.abort();

Loading…
Cancel
Save