diff options
author | Stephen Haberman <stephen@exigencecorp.com> | 2014-11-29 20:12:05 -0500 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-11-29 20:12:05 -0500 |
commit | 95290bf4c4c786c95ba1ffdfe73bc61f6a0ee6b1 (patch) | |
tree | 99f36065ee768c39717384b44ea6cb63ee925348 | |
parent | 317e114e11669899618c7c06bbc0091b36618f36 (diff) | |
download | spark-95290bf4c4c786c95ba1ffdfe73bc61f6a0ee6b1.tar.gz spark-95290bf4c4c786c95ba1ffdfe73bc61f6a0ee6b1.tar.bz2 spark-95290bf4c4c786c95ba1ffdfe73bc61f6a0ee6b1.zip |
Include the key name when failing on an invalid value.
Admittedly a really small tweak.
Author: Stephen Haberman <stephen@exigencecorp.com>
Closes #3514 from stephenh/include-key-name-in-npe and squashes the following commits:
937740a [Stephen Haberman] Include the key name when failing on an invalid value.
-rw-r--r-- | core/src/main/scala/org/apache/spark/SparkConf.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/SparkConf.scala b/core/src/main/scala/org/apache/spark/SparkConf.scala index 4c6c86c7ba..c14764f773 100644 --- a/core/src/main/scala/org/apache/spark/SparkConf.scala +++ b/core/src/main/scala/org/apache/spark/SparkConf.scala @@ -61,7 +61,7 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging { throw new NullPointerException("null key") } if (value == null) { - throw new NullPointerException("null value") + throw new NullPointerException("null value for " + key) } settings(key) = value this |