Skip to content

Commit db63038

Browse files
committed
Merge pull request #862 from NativeScript/totev/fix-remove-files
Delete appResourcesDirectoryPath when exception occurs
2 parents aced117 + 74f5098 commit db63038

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)