public function consoleError(\Zend\Mvc\MvcEvent $oEvent)
    {
        if (($oRequest = $oEvent->getRequest()) instanceof \Zend\Console\Request && $oRequest->getParam('controller') === 'AssetsBundle\Controller\Tools'
        ) {
            $oConsole = $oEvent->getApplication()->getServiceManager()->get('console');
            $oConsole->writeLine(PHP_EOL . '======================================================================', \Zend\Console\ColorInterface::GRAY);
            $oConsole->writeLine('An error occured', \Zend\Console\ColorInterface::RED);
            $oConsole->writeLine('======================================================================', \Zend\Console\ColorInterface::GRAY);

            if (!($oException = $oEvent->getParam('exception')) instanceof \Exception) {
                $oException = new \RuntimeException($oEvent->getError());
            }
            $oConsole->writeLine($oException . PHP_EOL);
        }
    }