Convert e.printStackTrace to rule error in cc_library
Tiny cleanup.
RELNOTES: None.
@@ -427,7 +427,7 @@ public abstract class CcLibrary implements RuleConfiguredTargetFactory {
builder.addTransitiveArtifacts(
ccToolchain.getDynamicRuntimeLinkInputs(featureConfiguration));
} catch (EvalException e) {
- e.printStackTrace();
+ throw ruleContext.throwWithRuleError(e.getMessage());
}
}
Runfiles runfiles = builder.build();
