public function &getErrors($channel = null)
    {
        // Uses the passed channel or fallback to the current selected channel
        $channel = $this->namespaceChannel($channel);

        if ( ! isset($this->console['errors'][$channel]) ) {
            $this->console['errors'][$channel] = array();
        }

        return $this->console['errors'][$channel];
    }
public function &getErrors($channel = null)
    {
        // Uses the passed channel or fallback to the current selected channel
        $channel = $this->namespaceChannel($channel);

        if ( ! isset($this->console['errors'][$channel]) ) {
            $this->console['errors'][$channel] = array();
        }

        return $this->console['errors'][$channel];
    }
public function & getErrors ( $ channel = null ) { // Uses the passed channel or fallback to the current selected channel $ channel = $ this -> namespaceChannel ( $ channel ) ; if ( ! isset ( $ this -> console [ 'errors' ] [ $ channel ] ) ) { $ this -> console [ 'errors' ] [ $ channel ] = array ( ) ; } return $ this -> console [ 'errors' ] [ $ channel ] ; }
Get all errors in a specified channel

@param string $channel - Channel identifier

@return array - returns the error stack by reference, even if empty
Get all errors in a specified channel