Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Commit 7feb697

Browse files
committed
refactor: error check in show container
1 parent 1523876 commit 7feb697

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/AppBundle/Controller/ContainerController.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -571,11 +571,7 @@ public function showSingleAction(Request $request, int $containerId, ContainerAp
571571

572572
$result = $api->show($container->getHost(), $container->getName());
573573

574-
if ($error = $this->checkForErrors($result)) {
575-
throw new ElementNotFoundException(
576-
'No container found for name: ' . $container->getName()
577-
);
578-
}
574+
$this->checkForErrors($result);
579575

580576
$container->setArchitecture($result->body->metadata->architecture);
581577
$container->setConfig($result->body->metadata->config);

0 commit comments

Comments
 (0)