diff --git a/plugins/repository-hdfs/build.gradle b/plugins/repository-hdfs/build.gradle index 2848f1b2479..cf4a400a759 100644 --- a/plugins/repository-hdfs/build.gradle +++ b/plugins/repository-hdfs/build.gradle @@ -137,7 +137,7 @@ if (Os.isFamily(Os.FAMILY_WINDOWS)) { Files.exists(path.resolve("bin").resolve("hdfs.dll"))) { fixtureSupported = true } else { - throw new IllegalStateException("HADOOP_HOME: " + path.toString() + " is invalid, does not contain hadoop native libraries in $HADOOP_HOME/bin"); + throw new IllegalStateException("HADOOP_HOME: ${path} is invalid, does not contain hadoop native libraries in \$HADOOP_HOME/bin"); } } } else {