diff --git a/Global.cpp b/Global.cpp index ec1994a..e269378 100644 --- a/Global.cpp +++ b/Global.cpp @@ -50,7 +50,6 @@ namespace jet { splitName.split("."); if(splitName.getList().size() == 1) return variables[splitName[0]]; - std::cout << "session var: " << splitName << std::endl; return getSessionVariable(splitName); } throw coreutils::Exception("expected variable name or type designator."); diff --git a/jet-2.0 b/jet-2.0 index f7575ac..e74d377 100755 Binary files a/jet-2.0 and b/jet-2.0 differ diff --git a/jet-2.0.cpp b/jet-2.0.cpp index 8704ff3..0600e24 100644 --- a/jet-2.0.cpp +++ b/jet-2.0.cpp @@ -11,19 +11,20 @@ int main(int argc, char **argv) { script.read(); coreutils::ZString data = script.asZString(); data.goeol(); + + jet::Global global; try { - jet::Global global; coreutils::MString out; jet::__jet *jet = new jet::__jet(data, out, global); delete jet; - global.dump(); std::cout << "----------------------" << std::endl; global.outputHeaders(); std::cout << out; } catch(coreutils::Exception e) { - std::cout << "Error caught: " << e.text << std::endl; + std::cout << "Error caught: " << e.text << std::endl; + global.dump(); } }