Yaffs site version 1.1
[yaffs-website] / vendor / drupal / console / src / Command / Views / DisableCommand.php
index c127f649c10be3e396921c8fe0162f02882fcba6..146763ec9d433bc42d08e38a020c039e29a9ab77 100644 (file)
@@ -98,7 +98,8 @@ class DisableCommand extends Command
 
         if (empty($view)) {
             $io->error(sprintf($this->trans('commands.views.debug.messages.not-found'), $viewId));
-            return;
+
+            return 1;
         }
 
         try {
@@ -107,6 +108,10 @@ class DisableCommand extends Command
             $io->success(sprintf($this->trans('commands.views.disable.messages.disabled-successfully'), $view->get('label')));
         } catch (\Exception $e) {
             $io->error($e->getMessage());
+
+            return 1;
         }
+
+        return 0;
     }
 }