From d1b2476c14cc70b89f020f20b55fcfbde3640b19 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 28 Feb 2025 17:05:15 +0100 Subject: [PATCH] Write string-data into the `.error`-file created for broken test-manifest links (issue 19579) This appears to have broken in PR 17431, since prior to that the `downloadFile` function returned a string (via a callback) on failure and now we're instead rejecting with an Error. --- test/downloadutils.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/downloadutils.mjs b/test/downloadutils.mjs index 6d80e2153..cd2123958 100644 --- a/test/downloadutils.mjs +++ b/test/downloadutils.mjs @@ -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()); } } }