generate to text even if assertion error

This commit is contained in:
Stepan Koltsov
2012-06-08 04:19:24 +04:00
parent 18aa1dc570
commit c580a75f20
@@ -315,9 +315,9 @@ public abstract class CodegenTestCase extends UsefulTestCase {
DxChecker.check(generationState.getFactory());
}
} catch (RuntimeException e) {
} catch (Throwable e) {
System.out.println(generateToText());
throw e;
throw ExceptionUtils.rethrow(e);
}
return generationState;
}