Skip to content

Commit 74f5098

Browse files
committed
Delete appResourcesDirectoryPath when exception occurs
1 parent aced117 commit 74f5098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/platform-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ export class PlatformService implements IPlatformService {
189189
this.$broccoliBuilder.prepareNodeModules(tnsModulesDestinationPath, this.$projectData.projectDir, platform, lastModifiedTime).wait();
190190
} catch(error) {
191191
this.$logger.debug(error);
192-
this.$errors.fail(`Processing node_modules failed. Error:${error}`);
193192
shell.rm("-rf", appResourcesDirectoryPath);
193+
this.$errors.fail(`Processing node_modules failed. Error:${error}`);
194194
}
195195

196196
// Process platform specific files

0 commit comments

Comments
 (0)