Skip to content

Commit

Permalink
Improve confluence code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
onigoetz committed Dec 21, 2022
1 parent 17446c3 commit 388b412
Show file tree
Hide file tree
Showing 2 changed files with 387 additions and 36 deletions.
7 changes: 1 addition & 6 deletions libs/Format/Confluence/Publisher.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?php namespace Todaymade\Daux\Format\Confluence;

use GuzzleHttp\Exception\BadResponseException;
use Symfony\Component\Console\Output\OutputInterface;
use Todaymade\Daux\Console\RunAction;

Expand All @@ -23,11 +22,7 @@ public function __construct(Config $confluence, Api $client, OutputInterface $ou

public function run($title, $closure)
{
try {
return $this->runAction($title, $this->width, $closure);
} catch (BadResponseException $e) {
$this->output->writeLn('<fg=red>' . $e->getMessage() . '</>');
}
return $this->runAction($title, $this->width, $closure);
}

public function diff($local, $remote, $level)
Expand Down
Loading

0 comments on commit 388b412

Please sign in to comment.