root

Changeset 621

Show
Ignore:
Timestamp:
06/29/09 00:11:50 (1 year ago)
Author:
wbond
Message:

Added a missing line of backtrace to fException::formatTrace()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fException.php

    r618 r621 Hide Line Numbers
    1010 * @link       http://flourishlib.com/fException 
    1111 *  
    12  * @version    1.0.0b7 
     12 * @version    1.0.0b8 
     13 * @changes    1.0.0b8  Added a missing line of backtrace to ::formatTrace() [wb, 2009-06-28] 
    1314 * @changes    1.0.0b7  Updated ::__construct() to no longer require a message, like the Exception class, and allow for non-integer codes [wb, 2009-06-26] 
    1415 * @changes    1.0.0b6  Fixed ::splitMessage() so that the original message is returned if no list items are found, added ::reorderMessage() [wb, 2009-06-02] 
     
    282283         
    283284        $backtrace = explode("\n", $this->getTraceAsString()); 
     285        array_unshift($backtrace, $this->file . '(' . $this->line . ')'); 
    284286        $backtrace = preg_replace('/^#\d+\s+/', '', $backtrace); 
    285287        $backtrace = str_replace($doc_root, '{doc_root}' . DIRECTORY_SEPARATOR, $backtrace);