From 90fe184501ba15b3e29fb7706696c64e6a08652b Mon Sep 17 00:00:00 2001 From: Adrian Sieber Date: Thu, 8 Oct 2015 21:58:32 +0200 Subject: [PATCH] Mark the default value in error message --- src/Matrix.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Matrix.cc b/src/Matrix.cc index ea2338b..06928c4 100755 --- a/src/Matrix.cc +++ b/src/Matrix.cc @@ -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);