spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject [19/28] git commit: Fix error message ugliness.
Date Thu, 26 Dec 2013 06:31:36 GMT
Fix error message ugliness.


Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/2402180b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/2402180b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/2402180b

Branch: refs/heads/master
Commit: 2402180b32d530319d0526490afa3cfafc5c36b8
Parents: cbb2811
Author: Tor Myklebust <tmyklebu@gmail.com>
Authored: Tue Dec 24 16:18:33 2013 -0500
Committer: Tor Myklebust <tmyklebu@gmail.com>
Committed: Tue Dec 24 16:18:33 2013 -0500

----------------------------------------------------------------------
 .../main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/2402180b/mllib/src/main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala
----------------------------------------------------------------------
diff --git a/mllib/src/main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala b/mllib/src/main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala
index 4620cab..67ec974 100644
--- a/mllib/src/main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala
+++ b/mllib/src/main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala
@@ -42,7 +42,7 @@ class PythonMLLibAPI extends Serializable {
     }
     val length = bb.getLong()
     if (packetLength != 16 + 8 * length) {
-      throw new IllegalArgumentException("Length " + length + "is wrong.")
+      throw new IllegalArgumentException("Length " + length + " is wrong.")
     }
     val db = bb.asDoubleBuffer()
     val ans = new Array[Double](length.toInt)
@@ -76,7 +76,7 @@ class PythonMLLibAPI extends Serializable {
     val rows = bb.getLong()
     val cols = bb.getLong()
     if (packetLength != 24 + 8 * rows * cols) {
-      throw new IllegalArgumentException("Size " + rows + "x" + cols + "is wrong.")
+      throw new IllegalArgumentException("Size " + rows + "x" + cols + " is wrong.")
     }
     val db = bb.asDoubleBuffer()
     val ans = new Array[Array[Double]](rows.toInt)


Mime
View raw message