diff options
author | olaola <olaola@google.com> | 2018-02-08 09:38:53 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-02-08 09:40:36 -0800 |
commit | 995d62e379493b04e8eb8966fa8e4da26bcb619d (patch) | |
tree | a4797fe49eb37219db007e51d966ef4aa4bebada /src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java | |
parent | 13962bf49cc756b49d9f114baf454f428a18acac (diff) |
User-friendlier representation of a missing digest.
I moved it into DigestUtil preemptively in case we switch to binary instead of hex representation.
TESTED=manually
RELNOTES: None
PiperOrigin-RevId: 185007558
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java b/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java index 15ff3ef3ad..2f9e0c3ed0 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java +++ b/src/main/java/com/google/devtools/build/lib/remote/CacheNotFoundException.java @@ -24,8 +24,8 @@ import java.io.IOException; public final class CacheNotFoundException extends IOException { private final Digest missingDigest; - CacheNotFoundException(Digest missingDigest) { - super("Missing digest: " + missingDigest); + CacheNotFoundException(Digest missingDigest, DigestUtil digestUtil) { + super("Missing digest: " + digestUtil.toString(missingDigest)); this.missingDigest = missingDigest; } |