summaryrefslogtreecommitdiff
path: root/src/parser/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/parser.cpp')
-rw-r--r--src/parser/parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp
index e8e2c2ea3..1f9c3fd2b 100644
--- a/src/parser/parser.cpp
+++ b/src/parser/parser.cpp
@@ -269,7 +269,8 @@ void Parser::defineVar(const std::string& name, const Expr& val,
Debug("parser") << "defineVar( " << name << " := " << val << ")" << std::endl;
if (!d_symtab->bind(name, val, levelZero, doOverload)) {
std::stringstream ss;
- ss << "Failed to bind " << name << " to symbol of type " << val.getType();
+ ss << "Cannot bind " << name << " to symbol of type " << val.getType();
+ ss << ", maybe the symbol has already been defined?";
parseError(ss.str());
}
assert(isDeclared(name));
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback