Search in sources :

Example 1 with FirstErrorMessageAccumulator

use of com.google.devtools.build.lib.skyframe.TransitiveTraversalFunction.FirstErrorMessageAccumulator in project bazel by bazelbuild.

the class TransitiveTraversalFunction method processTarget.

@Override
FirstErrorMessageAccumulator processTarget(Label label, TargetAndErrorIfAny targetAndErrorIfAny) {
    NoSuchTargetException errorIfAny = targetAndErrorIfAny.getErrorLoadingTarget();
    String errorMessageIfAny = errorIfAny == null ? null : errorIfAny.getMessage();
    return new FirstErrorMessageAccumulator(errorMessageIfAny);
}
Also used : FirstErrorMessageAccumulator(com.google.devtools.build.lib.skyframe.TransitiveTraversalFunction.FirstErrorMessageAccumulator) NoSuchTargetException(com.google.devtools.build.lib.packages.NoSuchTargetException)

Aggregations

NoSuchTargetException (com.google.devtools.build.lib.packages.NoSuchTargetException)1 FirstErrorMessageAccumulator (com.google.devtools.build.lib.skyframe.TransitiveTraversalFunction.FirstErrorMessageAccumulator)1