Allow bash script header

This commit is contained in:
Jonathan Turner
2009-07-01 13:41:15 +00:00
parent 3214f427ff
commit 5f96b39c08
2 changed files with 7 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ namespace chaiscript
}
catch (EvalError &ee) {
if (filename != std::string("__EVAL__")) {
std::cout << "Eval error: \"" << ee.reason << "\" in '" << ee.location->filename << "' line: " << ee.location->start.line+1 << std::endl;
std::cout << "Eval error: \"" << ee.reason << "\" in '" << ee.location->filename << "' line: " << ee.location->start.line << std::endl;
}
else {
std::cout << "Eval error: \"" << ee.reason << "\"" << std::endl;