X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FConfig%2FEditCommand.php;fp=vendor%2Fdrupal%2Fconsole%2Fsrc%2FCommand%2FConfig%2FEditCommand.php;h=d142d711131b61cf244436a9a25786f0f4e8bfdb;hb=eba34333e3c89f208d2f72fa91351ad019a71583;hp=5f0c1bebe94e8024baddb7b9fd4167c151182cc9;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/vendor/drupal/console/src/Command/Config/EditCommand.php b/vendor/drupal/console/src/Command/Config/EditCommand.php index 5f0c1bebe..d142d7111 100644 --- a/vendor/drupal/console/src/Command/Config/EditCommand.php +++ b/vendor/drupal/console/src/Command/Config/EditCommand.php @@ -97,7 +97,7 @@ class EditCommand extends Command if (!$configName) { $io->error($this->trans('commands.config.edit.messages.no-config')); - return; + return 1; } try { @@ -106,7 +106,7 @@ class EditCommand extends Command } catch (IOExceptionInterface $e) { $io->error($this->trans('commands.config.edit.messages.no-directory').' '.$e->getPath()); - return; + return 1; } if (!$editor) { $editor = $this->getEditor(); @@ -122,9 +122,13 @@ class EditCommand extends Command $config->save(); $fileSystem->remove($configFile); } + if (!$process->isSuccessful()) { $io->error($process->getErrorOutput()); + return 1; } + + return 0; } protected function interact(InputInterface $input, OutputInterface $output)