[updater] CCE in patch builder

GitOrigin-RevId: 04156ee40c1ee01320b043756128659887b8aee4
This commit is contained in:
Roman Shevchenko
2020-09-16 20:40:18 +02:00
committed by intellij-monorepo-bot
parent b5f2073afa
commit 1fb5951f38

View File

@@ -75,7 +75,13 @@ public class PatchFileCreator {
}
}
catch (InterruptedException e) { throw new IOException(e); }
catch (ExecutionException e) { throw ((IOException)e.getCause()); }
catch (ExecutionException e) {
Throwable cause = e.getCause();
if (cause instanceof IOException) throw (IOException)cause;
if (cause instanceof RuntimeException) throw (RuntimeException)cause;
if (cause instanceof Error) throw (Error)cause;
throw new RuntimeException(e);
}
}
}
}
@@ -147,4 +153,4 @@ public class PatchFileCreator {
this.error = error;
}
}
}
}