diff options
author | Tor Myklebust <tmyklebu@gmail.com> | 2013-12-24 16:18:33 -0500 |
---|---|---|
committer | Tor Myklebust <tmyklebu@gmail.com> | 2013-12-24 16:18:33 -0500 |
commit | 2402180b32d530319d0526490afa3cfafc5c36b8 (patch) | |
tree | ead89c4735bc20ca7dc89c0814a4fd11c380dfd7 /mllib | |
parent | cbb28111896844a0fd94346cd9c6f9926c706555 (diff) | |
download | spark-2402180b32d530319d0526490afa3cfafc5c36b8.tar.gz spark-2402180b32d530319d0526490afa3cfafc5c36b8.tar.bz2 spark-2402180b32d530319d0526490afa3cfafc5c36b8.zip |
Fix error message ugliness.
Diffstat (limited to 'mllib')
-rw-r--r-- | mllib/src/main/scala/org/apache/spark/mllib/api/PythonMLLibAPI.scala | 4 |
1 files changed, 2 insertions, 2 deletions
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 4620cab175..67ec974734 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) |