Skip to content

Commit 086f620

Browse files
fixed error message in mat constructor
1 parent d89115b commit 086f620

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cc/core/Mat.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,12 @@ NAN_METHOD(Mat::New) {
120120
channels.push_back(channelMat);
121121
if (i > 0) {
122122
if (channels.at(i - 1).rows != channelMat.rows) {
123-
return Nan::ThrowError(FF_NEW_STRING("Mat::New - rows "
123+
return Nan::ThrowError(FF_NEW_STRING("Mat::New - rows mismatch "
124124
+ std::to_string(channels.at(i - 1).rows) + ", have " + std::to_string(channelMat.rows)
125125
+ " at channel " + std::to_string(i)));
126126
}
127127
if (channels.at(i - 1).cols != channelMat.cols) {
128-
return Nan::ThrowError(FF_NEW_STRING("Mat::New - cols "
128+
return Nan::ThrowError(FF_NEW_STRING("Mat::New - cols mismatch "
129129
+ std::to_string(channels.at(i - 1).cols) + ", have " + std::to_string(channelMat.rows)
130130
+ " at channel " + std::to_string(i)));
131131
}

0 commit comments

Comments
 (0)