Acacha\Llum\Console\GithubRepoCommand::showError PHP Method

showError() protected method

Show error.
protected showError ( GuzzleHttp\Exception\ClientException $ce, Symfony\Component\Console\Output\OutputInterface $output )
$ce GuzzleHttp\Exception\ClientException
$output Symfony\Component\Console\Output\OutputInterface
    protected function showError(ClientException $ce, OutputInterface $output)
    {
        if ($ce->getResponse()->getStatusCode() == 422) {
            $output->writeln('<error>Repository already exists</error>');
            die;
        }
        $output->writeln('<error>Client Request exception thrown</error>');
        die;
    }