Fix crash with `--experimental_skyframe_prepare_analysis` by accepting any `DetailedException`.
It is possible to get a `MissingInputFileException` if the file specified by `--platform_mappings` does not exist.
We apparently don't have any tests for `--experimental_skyframe_prepare_analysis`.
@@ -3037,8 +3037,8 @@ public abstract class SkyframeExecutor implements WalkableGraphFactory, Configur
e =
new InvalidConfigurationException(
"cannot load build configuration because of this cycle", Code.CYCLE);
- } else if (e instanceof NoSuchThingException) {
- e = new InvalidConfigurationException(((NoSuchThingException) e).getDetailedExitCode(), e);
+ } else if (e instanceof DetailedException) {
+ e = new InvalidConfigurationException(((DetailedException) e).getDetailedExitCode(), e);
}
if (e != null) {
Throwables.throwIfInstanceOf(e, InvalidConfigurationException.class);
