projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5bd50
)
Improve error message. (#2124)
author
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Mon, 2 Jul 2018 17:20:10 +0000
(12:20 -0500)
committer
GitHub
<noreply@github.com>
Mon, 2 Jul 2018 17:20:10 +0000
(12:20 -0500)
src/parser/parser.cpp
patch
|
blob
|
history
diff --git
a/src/parser/parser.cpp
b/src/parser/parser.cpp
index e8e2c2ea3d07890a7951e9e8c74dab91d9c3c5d5..1f9c3fd2b8883c33864f74787d725e2a984dabaa 100644
(file)
--- 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));