From 4cd7cf86db3c2bdabe02a7820f23ea6b41874886 Mon Sep 17 00:00:00 2001 From: Patrik Kernstock Date: Wed, 10 Oct 2018 17:32:50 +0200 Subject: Using Throwable instead of Exception Signed-off-by: Patrik Kernstock --- core/Command/App/Remove.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/Command/App/Remove.php b/core/Command/App/Remove.php index dc8ea7c2203..3264a2223d1 100644 --- a/core/Command/App/Remove.php +++ b/core/Command/App/Remove.php @@ -22,6 +22,7 @@ namespace OC\Core\Command\App; +use Throwable; use OC\Installer; use OCP\App\IAppManager; use OCP\ILogger; @@ -93,7 +94,7 @@ class Remove extends Command implements CompletionAwareInterface { try { $this->manager->disableApp($appId); $output->writeln($appId . ' disabled'); - } catch(\Exception $e) { + } catch(Throwable $e) { $output->writeln('Error: ' . $e->getMessage()); $this->logger->logException($e, [ 'app' => 'CLI', @@ -106,7 +107,7 @@ class Remove extends Command implements CompletionAwareInterface { // Let's try to remove the app... try { $result = $this->installer->removeApp($appId); - } catch(\Exception $e) { + } catch(Throwable $e) { $output->writeln('Error: ' . $e->getMessage()); $this->logger->logException($e, [ 'app' => 'CLI', -- cgit v1.2.3