Skip to content

Commit ec15bab

Browse files
cdervCopilot
andauthored
Update package/src/common/validate-bundle.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e705202 commit ec15bab

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

package/src/common/validate-bundle.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ export async function validateBundle(
6868
cleanupFiles.forEach((file) => {
6969
try {
7070
Deno.removeSync(file, {recursive: true});
71-
} catch (_e) {
72-
// File may not exist if validation failed early
71+
} catch (e) {
72+
if (e instanceof Deno.errors.NotFound) {
73+
// File may not exist if validation failed early
74+
} else {
75+
info(`Failed to remove cleanup file '${file}': ${e instanceof Error ? e.message : String(e)}`);
76+
}
7377
}
7478
})
7579
}

0 commit comments

Comments
 (0)