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