diff options
Diffstat (limited to 'lib/SMT/SMTParser.cpp')
-rw-r--r-- | lib/SMT/SMTParser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/SMT/SMTParser.cpp b/lib/SMT/SMTParser.cpp index 96d33661..5edff9d0 100644 --- a/lib/SMT/SMTParser.cpp +++ b/lib/SMT/SMTParser.cpp @@ -63,8 +63,10 @@ Decl* SMTParser::ParseTopLevelDecl() { } // XXX: give more info -int SMTParser::Error(const string& s) { - std::cerr << "error: " << s << "\n"; +int SMTParser::Error(const string& msg) { + std::cerr << SMTParser::parserTemp->fileName << ":" + << SMTParser::parserTemp->lineNum + << ": " << msg << "\n"; exit(1); return 0; } |