summaryrefslogtreecommitdiff
path: root/includes/Main.h
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-11-21 13:27:53 -0800
committerPixel <pixel@nobis-crew.org>2011-11-21 13:27:53 -0800
commite10639753d7dbd368f5edc2555d75c4b5905ba3b (patch)
tree34b6c4bc2990f48de30d26486426558d643e7ac8 /includes/Main.h
parent071e7f07901309a38c8cb5311aaecaa46c0c3542 (diff)
GeneralException() will now trace the callstack and store this, for debugging purposes.
Diffstat (limited to 'includes/Main.h')
-rw-r--r--includes/Main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/Main.h b/includes/Main.h
index 5fa64c1..1c902ec 100644
--- a/includes/Main.h
+++ b/includes/Main.h
@@ -88,6 +88,9 @@ class Main {
catch (GeneralException e) {
m_status = STOPPING;
Printer::log(M_ERROR | M_ALERT, "The application caused an exception: %s", e.getMsg());
+ std::vector<String> trace = e.getTrace();
+ for (std::vector<String>::iterator i = trace.begin(); i != trace.end(); i++)
+ Printer::log(M_DEBUG, "%s", i->to_charp());
r = -1;
}
catch (...) {