BUGFIX: Fix display of exception backtrace in CLI view.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97038 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-01-17 22:09:12 +00:00
parent 5718a6a3d1
commit 8d3968c637

View File

@ -49,8 +49,9 @@ class CliDebugView extends DebugView {
/**
* Write a backtrace
*/
function writeTrace() {
SS_Backtrace::backtrace();
function writeTrace($trace = null) {
echo "Trace\n=====\n";
echo SS_Backtrace::get_rendered_backtrace($trace ? $trace : debug_backtrace(), true);
}
/**