Fix the issue where zip might not be closed on compilation error.
I started a more complete fix to follow up but this should get the job done for now.
@@ -126,10 +126,11 @@ class J2clTranspiler {
checkUnits(j2clUnits);
normalizeUnits(j2clUnits);
generateOutputs(j2clUnits);
- maybeCloseFileSystem();
return problems;
} catch (Problems.Exit e) {
return e.getProblems();
+ } finally {
+ maybeCloseFileSystem();
}
}
