diff options
author | cnsun <cnsun@google.com> | 2017-05-16 18:01:18 +0200 |
---|---|---|
committer | Ivan Gavrilovic <gavra@google.com> | 2017-05-19 13:52:39 +0100 |
commit | fdf79821aca7b0eff897f1037a9deae060113558 (patch) | |
tree | 21f846426729a5c81636e49c967843c128f0dbe5 | |
parent | 2488e5f7cdb4fc9f90271ffbde5f674b19751e47 (diff) | |
download | desugar-fdf79821aca7b0eff897f1037a9deae060113558.tar.gz |
Refine assertion by providing more information. When the given path is NOT a
directory, output its path.
RELNOTES: n/a
PiperOrigin-RevId: 156187835
GitOrigin-RevId: 734d9e5663d86f9802c74a2ebd0e3ad9def0678e
Change-Id: I4c38374b1e2ee86994496aa9fdd34786ca56034e
-rw-r--r-- | java/com/google/devtools/build/android/desugar/LambdaClassMaker.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/google/devtools/build/android/desugar/LambdaClassMaker.java b/java/com/google/devtools/build/android/desugar/LambdaClassMaker.java index 155e323..beaeb03 100644 --- a/java/com/google/devtools/build/android/desugar/LambdaClassMaker.java +++ b/java/com/google/devtools/build/android/desugar/LambdaClassMaker.java @@ -35,7 +35,8 @@ class LambdaClassMaker { private final Map<Path, LambdaInfo> generatedClasses = new LinkedHashMap<>(); public LambdaClassMaker(Path rootDirectory) { - checkArgument(Files.isDirectory(rootDirectory)); + checkArgument( + Files.isDirectory(rootDirectory), "The argument '%s' is not a directory.", rootDirectory); this.rootDirectory = rootDirectory; } |