Mark the default value in error message

This commit is contained in:
Adrian Sieber 2015-10-08 21:58:32 +02:00
parent 8281330044
commit 90fe184501

View File

@ -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);