aboutsummaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorPatrik Kernstock <info@pkern.at>2018-10-10 17:32:50 +0200
committerPatrik Kernstock <info@pkern.at>2018-10-10 17:32:50 +0200
commit4cd7cf86db3c2bdabe02a7820f23ea6b41874886 (patch)
tree923e6db2265f7dd9e6339ac8f3a9661124cec5ff /core/Command
parent1973556346c4c0550aec1b7b38727ea89416bbeb (diff)
downloadnextcloud-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.php5
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',