Report target file on injector generation failure

This commit is contained in:
Andrey Breslav
2013-10-30 15:31:22 +04:00
parent ef2ae0f398
commit c034d5e675
@@ -55,10 +55,16 @@ public class GenerateInjectors {
private GenerateInjectors() { private GenerateInjectors() {
} }
public static void main(String[] args) throws IOException { public static void main(String[] args) throws Throwable {
for (DependencyInjectorGenerator generator : createGenerators()) { for (DependencyInjectorGenerator generator : createGenerators()) {
try {
generator.generate(); generator.generate();
} }
catch (Throwable e) {
System.err.println(generator.getOutputFile());
throw e;
}
}
} }
public static List<DependencyInjectorGenerator> createGenerators() throws IOException { public static List<DependencyInjectorGenerator> createGenerators() throws IOException {