mirror of
https://github.com/peterbraden/node-opencv.git
synced 2025-12-08 19:45:55 +00:00
Mark the default value in error message
This commit is contained in:
parent
8281330044
commit
90fe184501
@ -1656,8 +1656,9 @@ NAN_METHOD(Matrix::Threshold) {
|
||||
else {
|
||||
char *typeString = *typstr;
|
||||
char text[] = "\" is no supported binarization technique. "
|
||||
"Use \"Binary\", \"Binary Inverted\", \"Threshold Truncated\", "
|
||||
"\"Threshold to Zero\" or \"Threshold to Zero Inverted\"";
|
||||
"Use \"Binary\" (default), \"Binary Inverted\", "
|
||||
"\"Threshold Truncated\", \"Threshold to Zero\" "
|
||||
"or \"Threshold to Zero Inverted\"";
|
||||
char errorMessage[strlen(typeString) + strlen(text) + 2];
|
||||
strcpy(errorMessage, "\"");
|
||||
strcat(errorMessage, typeString);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user