Skip to content
Permalink
Browse files

Clean up formatting and make a failure exit non-zero.

Console tools should exit non-zero when a comman fails.

Refs #4993
  • Loading branch information...
markstory committed Nov 10, 2014
1 parent c1063dc commit 9ce3d89c814a30bf9e7c7925008fa7e124792d5a
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Cake/Console/Command/SchemaShell.php
@@ -292,10 +292,10 @@ protected function _loadSchema() {
$Schema = $this->Schema->load($options);
if (!$Schema) {
$this->err(__d('cake_console', 'The chosen schema could not be loaded. Attempted to load:'));
$this->err(__d('cake_console', 'File: %s', $this->Schema->path . DS . $this->Schema->file));
$this->err(__d('cake_console', 'Name: %s', $this->Schema->name));
return $this->_stop();
$this->err(__d('cake_console', '<error>Error</error>: The chosen schema could not be loaded. Attempted to load:'));
$this->err(__d('cake_console', '- file: %s', $this->Schema->path . DS . $this->Schema->file));
$this->err(__d('cake_console', '- name: %s', $this->Schema->name));
return $this->_stop(2);
}
$table = null;
if (isset($this->args[1])) {

0 comments on commit 9ce3d89

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.