Repository: spark Updated Branches: refs/heads/master 25a4c8e0c -> 24015199f
Added omitted word in error message ## What changes were proposed in this pull request? Added an omitted word in the error message displayed by the Graphx Pregel API when `maxIterations <= 0` ## How was this patch tested? Manual test Author: Victor Chima <blazy...@gmail.com> Closes #12205 from blazy2k9/hotfix/pregel-error-message. Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/24015199 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/24015199 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/24015199 Branch: refs/heads/master Commit: 24015199f46b5934d3000960538539495e025acf Parents: 25a4c8e Author: Victor Chima <blazy...@gmail.com> Authored: Wed Apr 6 15:27:46 2016 +0100 Committer: Sean Owen <so...@cloudera.com> Committed: Wed Apr 6 15:27:46 2016 +0100 ---------------------------------------------------------------------- graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/24015199/graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala ---------------------------------------------------------------------- diff --git a/graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala b/graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala index d2e51d2..646462b 100644 --- a/graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala +++ b/graphx/src/main/scala/org/apache/spark/graphx/Pregel.scala @@ -119,7 +119,7 @@ object Pregel extends Logging { mergeMsg: (A, A) => A) : Graph[VD, ED] = { - require(maxIterations > 0, s"Maximum of iterations must be greater than 0," + + require(maxIterations > 0, s"Maximum number of iterations must be greater than 0," + s" but got ${maxIterations}") var g = graph.mapVertices((vid, vdata) => vprog(vid, vdata, initialMsg)).cache() --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org