Bug 1802738 - Fix the error log when deleting canceled downloads. r=mak

Differential Revision: https://phabricator.services.mozilla.com/D163174
This commit is contained in:
Shane Hughes 2022-11-29 07:10:39 +00:00
parent 4e85ff0fe9
commit 53758c6b7d

View File

@ -101,7 +101,10 @@ async function isPlaceholder(path) {
return true;
}
} catch (ex) {
console.error(ex);
// Canceling the download may have removed the placeholder already.
if (ex.name != "NotFoundError") {
console.error(ex);
}
}
return false;
}