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,9 +55,15 @@ public class GenerateInjectors {
private GenerateInjectors() {
}
public static void main(String[] args) throws IOException {
public static void main(String[] args) throws Throwable {
for (DependencyInjectorGenerator generator : createGenerators()) {
generator.generate();
try {
generator.generate();
}
catch (Throwable e) {
System.err.println(generator.getOutputFile());
throw e;
}
}
}