request rebuild for IOException wrapped with RuntimeException

This commit is contained in:
Eugene Zhuravlev
2017-04-03 11:53:14 +02:00
parent 662725b4be
commit c9996151f0
@@ -214,7 +214,8 @@ public class IncProjectBuilder {
if (cause instanceof PersistentEnumerator.CorruptedException ||
cause instanceof MappingFailedException ||
cause instanceof IOException ||
cause instanceof BuildDataCorruptedException) {
cause instanceof BuildDataCorruptedException ||
(cause instanceof RuntimeException && cause.getCause() instanceof IOException)) {
requestRebuild(e, cause);
}
else {