diff options
author | ulfjack <ulfjack@google.com> | 2018-05-29 05:17:35 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-05-29 05:18:35 -0700 |
commit | 904a8d63833301f54c7df85bccc56ff67156afc5 (patch) | |
tree | 3e272496bee7dee8f2d9c4690128e4f13cb323fe /src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java | |
parent | ab2431e1ef62d91230fdef49b2556bbe60c9de56 (diff) |
Refactor root cause reporting in ConfiguredTargetFunction
We now track Causes instead of plain Labels, which will allow us to do better reporting in the future. Add basic tests.
PiperOrigin-RevId: 198380468
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java index 05a4fbe1a3..83e879994f 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/CompletionFunction.java @@ -322,7 +322,7 @@ public final class CompletionFunction<TValue extends SkyValue, TResult extends S missingCount++; final Label inputOwner = input.getOwner(); if (inputOwner != null) { - Cause cause = new LabelCause(inputOwner); + Cause cause = new LabelCause(inputOwner, e.getMessage()); rootCausesBuilder.add(cause); env.getListener().handle(completor.getRootCauseError(value, cause, env)); } |