mirror of https://github.com/vitalif/openscad
Comment out search term not found WARNING
Returning empty result should be sufficient for detecting a no-match condition. See forum discussion http://forum.openscad.org/Suppressing-quot-search-term-not-found-quot-warning-in-search-td12359.htmlmaster
parent
82f85cd328
commit
3adfdad66d
|
@ -740,7 +740,7 @@ static Value::VectorType search(const std::string &find, const std::string &tabl
|
|||
if (matchCount == 0) {
|
||||
gchar utf8_of_cp[6] = ""; //A buffer for a single unicode character to be copied into
|
||||
if (ptr_ft) g_utf8_strncpy(utf8_of_cp, ptr_ft, 1);
|
||||
PRINTB(" WARNING: search term not found: \"%s\"", utf8_of_cp);
|
||||
// PRINTB(" WARNING: search term not found: \"%s\"", utf8_of_cp);
|
||||
}
|
||||
if (num_returns_per_match == 0 || num_returns_per_match > 1) {
|
||||
returnvec.push_back(Value(resultvec));
|
||||
|
|
Loading…
Reference in New Issue