fix(unarchiveChannel): ignore 'ENOENT' errors on metadata

This commit is contained in:
Fabrice Mouhartem 2026-07-22 15:57:47 +02:00
parent 4eeaa08ab5
commit 5faabcf73b
No known key found for this signature in database

View File

@ -874,7 +874,8 @@ var unarchiveChannel = function (env, channelName, cb) {
// expired pad)
Fs.readFile(metadataPath, (readError, content) => {
if (readError) {
return CB(readError.code);
if (readError.code === 'ENOENT') { return void CB(); }
return CB(labelError("E_METADATA_RESTORATION", readError));
}
try {
let metadataArray = content.toString().split('\n');