Also dump target on general errors if enabled, references #45

This commit is contained in:
Mumfrey committed 2015-05-07 22:19:34 +01:00
1 parent c01d491a15
commit a4be263684
1 file changed
+4
@@ -369,6 +369,10 @@ public class MixinTransformer extends TreeTransformer {
return basicClass;
} catch (Exception ex) {
if (environment.getOption(Option.DUMP_TARGET_ON_FAILURE)) {
MixinTransformer.dumpClass(transformedName.replace('.', '/') + ".target", basicClass);
}
throw new MixinTransformerError("An unexpected critical error was encountered", ex);
} finally {
this.lock.pop();