1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 09:08:07 +02:00

Merge pull request #19581 from Snuffleupagus/issue-19579

Write string-data into the `.error`-file created for broken test-manifest links (issue 19579)
This commit is contained in:
Tim van der Meij 2025-03-02 15:39:11 +01:00 committed by GitHub
commit 1aee9d5c61
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,7 +88,7 @@ async function downloadManifestFiles(manifest) {
} catch (ex) {
console.error(`Error during downloading of ${url}:`, ex);
fs.writeFileSync(file, ""); // making it empty file
fs.writeFileSync(`${file}.error`, ex);
fs.writeFileSync(`${file}.error`, ex.toString());
}
}
}