diff --git a/toolkit/components/downloads/DownloadCore.sys.mjs b/toolkit/components/downloads/DownloadCore.sys.mjs index 2334bfc45881..61be1103f08d 100644 --- a/toolkit/components/downloads/DownloadCore.sys.mjs +++ b/toolkit/components/downloads/DownloadCore.sys.mjs @@ -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; }