Skip to content

Commit 67249f3

Browse files
committed
fix: avoid a failng migration because of a failing app resources update
1 parent c00b4a2 commit 67249f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/controllers/migrate-controller.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ export class MigrateController extends UpdateControllerBase implements IMigrateC
116116
const appResourcesPath = projectData.getAppResourcesDirectoryPath();
117117
if (!this.$androidResourcesMigrationService.hasMigrated(appResourcesPath)) {
118118
this.$logger.info("Migrate old Android App_Resources structure.");
119-
await this.$androidResourcesMigrationService.migrate(appResourcesPath);
119+
try {
120+
await this.$androidResourcesMigrationService.migrate(appResourcesPath);
121+
} catch (error) {
122+
this.$logger.warn("Migrate old Android App_Resources structure failed: ", error.message);
123+
}
120124
}
121125
}
122126

0 commit comments

Comments
 (0)