diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java index 006c6390bd297b..bb7c9d74a4d554 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/AspectFunction.java @@ -248,9 +248,8 @@ public SkyValue compute(SkyKey skyKey, Environment env) for (AspectKey aspectKey : orderedKeys) { AspectValue aspectValue = (AspectValue) aspectValues.get(aspectKey); if (aspectValue == null) { - BugReport.sendBugReport( - new IllegalStateException( - "aspectValue " + aspectKey + " was missing, this should never happen")); + BugReport.logUnexpected( + "aspectValue for: '%s' was missing, this should never happen", aspectKey); return null; } topologicalAspectPathBuilder.add(aspectValue.getAspect());