summaryrefslogtreecommitdiff
path: root/src/func.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-04-24 06:00:04 (GMT)
committerMarius Kintel <marius@kintel.net>2013-04-24 06:00:04 (GMT)
commit5f10c9f9c0a9805567ea8f9b560c6e0b50126119 (patch)
tree8869b03872b42ce1ffb1755958d05925f9f0bcb4 /src/func.cc
parent3307deee9361883a5297fbcac7f5a1cb428ed40c (diff)
parentf0ee85e17d474ab9119f82ee6f802d4634743b12 (diff)
Merge branch 'master' into issue217
Diffstat (limited to 'src/func.cc')
-rw-r--r--src/func.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/func.cc b/src/func.cc
index 791e957..26d7e69 100644
--- a/src/func.cc
+++ b/src/func.cc
@@ -449,7 +449,7 @@ Value builtin_search(const Context *, const std::vector<std::string>&, const std
if (num_returns_per_match > 1 && matchCount >= num_returns_per_match) break;
}
}
- if (matchCount == 0) PRINTB(" search term not found: \"%s\"", findThis.toString()[i]);
+ if (matchCount == 0) PRINTB(" WARNING: search term not found: \"%s\"", findThis.toString()[i]);
if (num_returns_per_match == 0 || num_returns_per_match > 1) {
returnvec.push_back(Value(resultvec));
}
@@ -478,10 +478,10 @@ Value builtin_search(const Context *, const std::vector<std::string>&, const std
}
if (num_returns_per_match == 1 && matchCount == 0) {
if (findThis.toVector()[i].type() == Value::NUMBER) {
- PRINTB(" search term not found: %s",findThis.toVector()[i].toDouble());
+ PRINTB(" WARNING: search term not found: %s",findThis.toVector()[i].toDouble());
}
else if (findThis.toVector()[i].type() == Value::STRING) {
- PRINTB(" search term not found: \"%s\"",findThis.toVector()[i].toString());
+ PRINTB(" WARNING: search term not found: \"%s\"",findThis.toVector()[i].toString());
}
returnvec.push_back(Value(resultvec));
}
@@ -490,7 +490,7 @@ Value builtin_search(const Context *, const std::vector<std::string>&, const std
}
}
} else {
- PRINTB(" search: none performed on input %s", findThis);
+ PRINTB(" WARNING: search: none performed on input %s", findThis);
return Value();
}
return Value(returnvec);
contact: Jan Huwald // Impressum