]> source.dussan.org Git - nextcloud-server.git/commitdiff
return non 0 status code in case of missing mount
authorRobin Appelman <icewind@owncloud.com>
Tue, 1 Dec 2015 12:47:56 +0000 (13:47 +0100)
committerRobin Appelman <icewind@owncloud.com>
Tue, 1 Dec 2015 12:47:56 +0000 (13:47 +0100)
apps/files_external/command/config.php

index 0fcf4b22d81c6fc9d5d0aaad339f1c813dcd8362..6a57b2dd9616ec6ac527d0ab36432e29478da339 100644 (file)
@@ -71,7 +71,7 @@ class Config extends Base {
                        $mount = $this->globalService->getStorage($mountId);
                } catch (NotFoundException $e) {
                        $output->writeln('<error>Mount with id "' . $mountId . ' not found, check "occ files_external:list" to get available mounts"</error>');
-                       return;
+                       return 404;
                }
 
                $value = $input->getArgument('value');