blackberry-webworks/BB10-Webworks-Packager — comment on commit 7b1da5b2c3bf2bb3972cfa11dd77fcfa1ffdfb19
File:  line 0
By jkeshavarzi:

We should delete the src folder after errors, whether keepSource(-s) was set or not. Tumbler does this.

Adding "fileManager.cleanSource(session);" to the catch block should be enough to fix this issue. We shouldn't need the cleanSourceIfNoNeedToKeep method.