Improve the error message for toolchain selection when the default platform is not present.
@@ -296,8 +296,12 @@ public final class SkyframeBuildView {
if (cause instanceof ActionConflictException) {
((ActionConflictException) cause).reportTo(eventHandler);
}
+ if (errorInfo.getException() != null) {
+ throw new ViewCreationFailedException(errorMsg, errorInfo.getException());
+ } else {
throw new ViewCreationFailedException(errorMsg);
}
+ }
boolean hasLoadingError = false;
// --keep_going : We notify the error and return a ConfiguredTargetValue
