protected function renderException(array $info)
    {
        $file      = $info['file'];
        $exception = $info['exception'];

        $line  = $exception->getTemplateLine();
        $lines = $this->getContext($info['template'], $line);

        if ($file) {
            $this->line(sprintf('<error>Fail</error> in %s (line %s)', $file, $line));
        } else {
            $this->line(sprintf('<error>Fail</error> (line %s)', $line));
        }

        foreach ($lines as $no => $code) {
            $this->line(
                sprintf(
                    "%s %-6s %s",
                    $no == $line ? '<error>>></error>' : '  ',
                    $no,
                    $code
                )
            );

            if ($no == $line) {
                $this->line(sprintf('<error>>> %s</error> ', $exception->getRawMessage()));
            }
        }
    }
protected function renderException(array $info)
    {
        $file      = $info['file'];
        $exception = $info['exception'];

        $line  = $exception->getTemplateLine();
        $lines = $this->getContext($info['template'], $line);

        if ($file) {
            $this->line(sprintf('<error>Fail</error> in %s (line %s)', $file, $line));
        } else {
            $this->line(sprintf('<error>Fail</error> (line %s)', $line));
        }

        foreach ($lines as $no => $code) {
            $this->line(
                sprintf(
                    "%s %-6s %s",
                    $no == $line ? '<error>>></error>' : '  ',
                    $no,
                    $code
                )
            );

            if ($no == $line) {
                $this->line(sprintf('<error>>> %s</error> ', $exception->getRawMessage()));
            }
        }
    }
protected function renderException ( array $ info ) { $ file = $ info [ 'file' ] ; $ exception = $ info [ 'exception' ] ; $ line = $ exception -> getTemplateLine ( ) ; $ lines = $ this -> getContext ( $ info [ 'template' ] , $ line ) ; if ( $ file ) { $ this -> line ( sprintf ( '<error>Fail</error> in %s (line %s)' , $ file , $ line ) ) ; } else { $ this -> line ( sprintf ( '<error>Fail</error> (line %s)' , $ line ) ) ; } foreach ( $ lines as $ no => $ code ) { $ this -> line ( sprintf ( "%s %-6s %s" , $ no == $ line ? '<error>>></error>' : '  ' , $ no , $ code ) ) ; if ( $ no == $ line ) { $ this -> line ( sprintf ( '<error>>> %s</error> ' , $ exception -> getRawMessage ( ) ) ) ; } } }
Output the error to the console.

@param array Details for the file that failed to be linted.

@return void
Output the error to the console .