diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-03 16:13:15 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-02-03 16:13:15 +0100 |
commit | 23c6a0cf99818c986f5a6537cf765fa9fdff5757 (patch) | |
tree | 6a944734914791a7d5e8a518f6600c897eb5be8f /core | |
parent | 9e222ec841946d773514f790fcc567c634d27038 (diff) | |
parent | d70160c6077ca017d6cb7d61f066fe33e3b1e081 (diff) | |
download | nextcloud-server-23c6a0cf99818c986f5a6537cf765fa9fdff5757.tar.gz nextcloud-server-23c6a0cf99818c986f5a6537cf765fa9fdff5757.zip |
Merge pull request #13843 from owncloud/fix-files-disabled
Fix disabled files app
Diffstat (limited to 'core')
-rw-r--r-- | core/command/app/disable.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/command/app/disable.php b/core/command/app/disable.php index dcdee92349e..2e028d183bb 100644 --- a/core/command/app/disable.php +++ b/core/command/app/disable.php @@ -28,8 +28,12 @@ class Disable extends Command { protected function execute(InputInterface $input, OutputInterface $output) { $appId = $input->getArgument('app-id'); if (\OC_App::isEnabled($appId)) { - \OC_App::disable($appId); - $output->writeln($appId . ' disabled'); + try { + \OC_App::disable($appId); + $output->writeln($appId . ' disabled'); + } catch(\Exception $e) { + $output->writeln($e->getMessage()); + } } else { $output->writeln('No such app enabled: ' . $appId); } |