Skip to content

Commit 243c2a9

Browse files
Improve artifact copy diagnostics
Log full src -> dst paths when an artifact is missing or copy fails. This improves triage during packaging without changing behavior or outputs
1 parent cf94d31 commit 243c2a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,9 @@ async function copyFiles(entryPoints, targetDir) {
445445
)
446446
return
447447
}
448-
console.error('Missing build artifact:', entryPoint.src)
448+
console.error('Missing build artifact:', `${entryPoint.src} -> ${entryPoint.dst}`)
449449
} else {
450-
console.error('Copy failed:', entryPoint, e)
450+
console.error('Copy failed:', `${entryPoint.src} -> ${entryPoint.dst}`, e)
451451
}
452452
throw e
453453
}

0 commit comments

Comments
 (0)