diff --git a/cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp b/cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp index 4910b653d..b6c917f5c 100644 --- a/cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp +++ b/cpp/core/src/zxing/common/GreyscaleLuminanceSource.cpp @@ -35,7 +35,7 @@ GreyscaleLuminanceSource::GreyscaleLuminanceSource(unsigned char* greyData, int unsigned char* GreyscaleLuminanceSource::getRow(int y, unsigned char* row) { if (y < 0 || y >= this->getHeight()) { - throw IllegalArgumentException("Requested row is outside the image: " + y); + throw IllegalArgumentException("Requested row is outside the image."); } int width = getWidth(); // TODO(flyashi): determine if row has enough size. diff --git a/cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp b/cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp index 498b5ea0d..a5dc35492 100644 --- a/cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp +++ b/cpp/core/src/zxing/common/GreyscaleRotatedLuminanceSource.cpp @@ -39,7 +39,7 @@ GreyscaleRotatedLuminanceSource::GreyscaleRotatedLuminanceSource(unsigned char* // The API asks for rows, but we're rotated, so we return columns. unsigned char* GreyscaleRotatedLuminanceSource::getRow(int y, unsigned char* row) { if (y < 0 || y >= getHeight()) { - throw IllegalArgumentException("Requested row is outside the image: " + y); + throw IllegalArgumentException("Requested row is outside the image."); } int width = getWidth(); if (row == NULL) {