Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-03 18:13:15 +0300
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-03 18:13:15 +0300
commit23c6a0cf99818c986f5a6537cf765fa9fdff5757 (patch)
tree6a944734914791a7d5e8a518f6600c897eb5be8f /core
parent9e222ec841946d773514f790fcc567c634d27038 (diff)
parentd70160c6077ca017d6cb7d61f066fe33e3b1e081 (diff)
Merge pull request #13843 from owncloud/fix-files-disabled
Fix disabled files app
Diffstat (limited to 'core')
-rw-r--r--core/command/app/disable.php8
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);
}