Recover failed conversion workers and validate Nitro downloads correctly
CI / check (push) Successful in 1m36s
CI / deploy (push) Successful in 1m15s
CI / e2e (push) Successful in 21s

This commit is contained in:
Simo committed 2026-09-05 14:18:28 +02:00
1 parent a78d8256e0
commit 7880d5d5df
5 files changed
+91 -8

No files matched your search

+5 -2
View File
@@ -750,7 +750,7 @@ export async function importSingleFurni(params: {
!existsSync(/*turbopackIgnore: true*/ nitroPath)
) {
const nitroUrl = `${sourceNitroBaseUrl}/${encodeURIComponent(safeNitroName)}.nitro`;
const dl = await downloadFile(nitroUrl, nitroPath, { validate: "png" });
const dl = await downloadFile(nitroUrl, nitroPath, { validate: "nitro" });
if (dl.ok) nitroDownloadOk = true;
}
@@ -843,7 +843,10 @@ export async function importSingleFurni(params: {
warnings,
error: isUpdate
? "No .nitro file could be created; existing furniture was preserved"
: "Import rolled back: no .nitro file could be created",
: `Import rolled back: no .nitro file could be created. ${warnings
.filter((warning) => /conversion|download|SWF/.test(warning))
.slice(-3)
.join(". ")}`,
};
}