diff options
author | Vijay Ramesh <vramesh@demandbase.com> | 2017-04-09 19:39:09 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2017-04-09 19:39:09 +0100 |
commit | 261eaf5149a8fe479ab4f9c34db892bcedbf5739 (patch) | |
tree | e086e6fe7cd0f180e0751220506916a89b09c0c7 /core/src/main/scala/org/apache | |
parent | 1f0de3c1c85a41eadc7c4131bdc948405f340099 (diff) | |
download | spark-261eaf5149a8fe479ab4f9c34db892bcedbf5739.tar.gz spark-261eaf5149a8fe479ab4f9c34db892bcedbf5739.tar.bz2 spark-261eaf5149a8fe479ab4f9c34db892bcedbf5739.zip |
[SPARK-20260][MLLIB] String interpolation required for error message
## What changes were proposed in this pull request?
This error message doesn't get properly formatted because of a missing `s`. Currently the error looks like:
```
Caused by: java.lang.IllegalArgumentException: requirement failed: indices should be one-based and in ascending order; found current=$current, previous=$previous; line="$line"
```
(note the literal `$current` instead of the interpolated value)
Please review http://spark.apache.org/contributing.html before opening a pull request.
Author: Vijay Ramesh <vramesh@demandbase.com>
Closes #17572 from vijaykramesh/master.
Diffstat (limited to 'core/src/main/scala/org/apache')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala b/core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala index f475ce8754..bae7a3f307 100644 --- a/core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala +++ b/core/src/main/scala/org/apache/spark/deploy/SparkHadoopUtil.scala @@ -349,7 +349,7 @@ class SparkHadoopUtil extends Logging { } } catch { case e: IOException => - logDebug("Failed to decode $token: $e", e) + logDebug(s"Failed to decode $token: $e", e) } buffer.toString } |