Skip to content

Commit

Permalink
Fix some error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AI0867 committed May 3, 2014
1 parent 4a2c8ed commit 99f1c06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/formula_function.cpp
Expand Up @@ -389,7 +389,7 @@ class substring_function
if(offset < 0) {
offset += result.size();
if(offset < 0) {
WRN_SF << "[concatenate] Offset '"
WRN_SF << "[substring] Offset '"
<< args()[1]->evaluate(variables, fdb).as_int()
<< "' results in a negative start in string '"
<< result
Expand All @@ -399,7 +399,7 @@ class substring_function
}
} else {
if(static_cast<size_t>(offset) >= result.size()) {
WRN_SF << "[concatenate] Offset '" << offset
WRN_SF << "[substring] Offset '" << offset
<< "' is larger than the size of '" << result
<< "' and results in an empty string.\n";

Expand All @@ -410,7 +410,7 @@ class substring_function
if(args().size() > 2) {
const int size = args()[2]->evaluate(variables, fdb).as_int();
if(size < 0) {
ERR_SF << "[concatenate] Size is negative an "
ERR_SF << "[substring] Size is negative an "
<< "empty string is returned.\n";

return variant(std::string());
Expand Down

0 comments on commit 99f1c06

Please sign in to comment.