diff options
author | Patrik Kernstock <info@pkern.at> | 2018-10-10 17:32:50 +0200 |
---|---|---|
committer | Patrik Kernstock <info@pkern.at> | 2018-10-10 17:32:50 +0200 |
commit | 4cd7cf86db3c2bdabe02a7820f23ea6b41874886 (patch) | |
tree | 923e6db2265f7dd9e6339ac8f3a9661124cec5ff /core/Command | |
parent | 1973556346c4c0550aec1b7b38727ea89416bbeb (diff) | |
download | nextcloud-server-4cd7cf86db3c2bdabe02a7820f23ea6b41874886.tar.gz nextcloud-server-4cd7cf86db3c2bdabe02a7820f23ea6b41874886.zip |
Using Throwable instead of Exception
Signed-off-by: Patrik Kernstock <info@pkern.at>
Diffstat (limited to 'core/Command')
-rw-r--r-- | core/Command/App/Remove.php | 5 |
1 files changed, 3 insertions, 2 deletions
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', |