commit | 807d4344c152d171b0bb507cebd03f2080e04950 | [log] [tgz] |
---|---|---|
author | Googler <noreply@google.com> | Mon Jun 29 11:58:07 2020 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Jun 29 11:59:08 2020 -0700 |
tree | 4927a64d6c299c2304e17e766d76d8dadf5b2904 | |
parent | 920b0933cb0a3133643969c953cb3e3a3b041aa5 [diff] |
Add the unexpected object to exception message. RELNOTES: None. PiperOrigin-RevId: 318862131
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ActionInputMapHelper.java b/src/main/java/com/google/devtools/build/lib/skyframe/ActionInputMapHelper.java index a8d054f..3fd1a36 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/ActionInputMapHelper.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/ActionInputMapHelper.java
@@ -97,7 +97,7 @@ topLevelFilesets.put(key, getFilesets(env, (SpecialArtifact) key)); } } else { - Preconditions.checkState(value instanceof FileArtifactValue); + Preconditions.checkArgument(value instanceof FileArtifactValue, "Unexpected value %s", value); inputMap.put(key, (FileArtifactValue) value, /*depOwner=*/ key); } }