Skip to content

Commit

Permalink
Include the key name when failing on an invalid value.
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Haberman committed Nov 29, 2014
1 parent 317e114 commit 937740a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/apache/spark/SparkConf.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 937740a

Please sign in to comment.