Skip to content

Commit 937740a

Browse files
author
Stephen Haberman
committed
Include the key name when failing on an invalid value.
1 parent 317e114 commit 937740a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/SparkConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SparkConf(loadDefaults: Boolean) extends Cloneable with Logging {
6161
throw new NullPointerException("null key")
6262
}
6363
if (value == null) {
64-
throw new NullPointerException("null value")
64+
throw new NullPointerException("null value for " + key)
6565
}
6666
settings(key) = value
6767
this

0 commit comments

Comments
 (0)