Skip to content

Commit 0272cdc

Browse files
authored
Handle potential failures in asset copying
Change finally block to catch block to handle potential failures gracefully.
1 parent d4cd48e commit 0272cdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generators/legacy-html/index.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export default {
189189
recursive: true,
190190
force: true,
191191
});
192-
} finally {
192+
} catch (_) {
193193
// There's a chance that this step will fail when being run in parallel, since
194194
// the generators will all attempt to modify the same files at the same time.
195195
// In that scenario, we just want to ignore the potential failure.

0 commit comments

Comments
 (0)