Worked on exception reporting.

This commit is contained in:
Brad Arant committed 2024-09-25 17:15:03 -07:00
1 parent 387203f4b3
commit e655173a8f
7 files changed
+86 -69

No files matched your search

+12 -1
View File
@@ -1,10 +1,21 @@
#include "__jet.h"
#include "Exception.h"
#include <iostream>
namespace jet {
__jet::__jet(coreutils::ZString &in, coreutils::MString &parent, Global &global) : Tag(in, parent, global) {
processContainer(container);
try {
processContainer(container);
}
catch(coreutils::Exception e) {
std::cout << container.parsed() << std::endl;
std::cout << "***** " << e.text << std::endl;
std::cout << container.unparsed() << std::endl;
throw e;
}
}
}