Worked on exception reporting.
This commit is contained in:
1 parent
387203f4b3
commit
e655173a8f
7 files changed
+86
-69
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user