Before:
Oct 28 15:30:34 STL error (www.foobar.com/A from 127.0.0.1): Exception thrown by a callback function called by Lua
After:
Oct 28 15:30:34 STL error (www.foobar.com/A from 127.0.0.1): Exception thrown by a callback function called by Lua. Extra info: Found . in wrong position in DNSName www.foobar.com..internal
reported by @elad, thanks!
(cherry picked from commit
068c763422b5830dc15598089f7760e79f5bdf81)
delete dc;
}
catch(std::exception& e) {
- L<<Logger::Error<<"STL error "<< makeLoginfo(dc)<<": "<<e.what()<<endl;
+ L<<Logger::Error<<"STL error "<< makeLoginfo(dc)<<": "<<e.what();
+
+ // Luawrapper nests the exception from Lua, so we unnest it here
+ try {
+ std::rethrow_if_nested(e);
+ } catch(const std::exception& e) {
+ L<<". Extra info: "<<e.what();
+ } catch(...) {}
+
+ L<<endl;
delete dc;
}
catch(...) {