diff options
author | Steve Bennett <steveb@workware.net.au> | 2014-01-05 08:42:21 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2014-01-15 07:46:32 +1000 |
commit | afe074ccf68410addadb5e30d928b05fc02fdff6 (patch) | |
tree | db6b2853cf252b6f0ae73470cc6d7023f97f97e0 /jim-array.c | |
parent | 4454f2a3aaa7ee629b70274687d3cb4dbf1107dd (diff) | |
download | jimtcl-afe074ccf68410addadb5e30d928b05fc02fdff6.zip jimtcl-afe074ccf68410addadb5e30d928b05fc02fdff6.tar.gz jimtcl-afe074ccf68410addadb5e30d928b05fc02fdff6.tar.bz2 |
stdlib: errorInfo includes the live stacktrace
Rather than just the error backtrace ([info stacktrace]),
include the live stacktrace. This means it is possible to do:
if {[catch $script msg]}
puts [errorInfo $msg]
}
to output the stack trace from the top level, not just from the point of capture.
It is still possible to pass a stacktrace to errorInfo to override this behaviour.
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim-array.c')
0 files changed, 0 insertions, 0 deletions