We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee97da4 commit 789668dCopy full SHA for 789668d
packages/bundler-plugin-core/src/debug-id-upload.ts
@@ -181,7 +181,13 @@ export function createDebugIdUploadFunction({
181
});
182
await Promise.all(
183
filePathsToDelete.map((filePathToDelete) =>
184
- fs.promises.rm(filePathToDelete, { force: true })
+ fs.promises.rm(filePathToDelete, { force: true }).catch((e) => {
185
+ // This is allowed to fail - we just don't do anything
186
+ logger.debug(
187
+ `An error occured while attempting to delete asset: ${filePathToDelete}`,
188
+ e
189
+ );
190
+ })
191
)
192
);
193
deleteSpan.finish();
0 commit comments