public function onConsoleException(ConsoleExceptionEvent $event)
    {
        $call = $this->callRepository->find($_REQUEST['call_id']);

        $call->setStatus(Call::STATUS_FAILED)
            ->setOutput($event->getException());

        $this->callRepository->update($call);

        $this->registerError($call);
    }
public function onConsoleException(ConsoleExceptionEvent $event)
    {
        $call = $this->callRepository->find($_REQUEST['call_id']);

        $call->setStatus(Call::STATUS_FAILED)
            ->setOutput($event->getException());

        $this->callRepository->update($call);

        $this->registerError($call);
    }
public function onConsoleException ( ConsoleExceptionEvent $ event ) { $ call = $ this -> callRepository -> find ( $ _REQUEST [ 'call_id' ] ) ; $ call -> setStatus ( Call :: STATUS_FAILED ) -> setOutput ( $ event -> getException ( ) ) ; $ this -> callRepository -> update ( $ call ) ; $ this -> registerError ( $ call ) ; }
Run on console command exception

@param ConsoleExceptionEvent $event
Run on console command exception