mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Clean up formatting and make a failure exit non-zero.
Console tools should exit non-zero when a comman fails. Refs #4993
This commit is contained in:
parent
c1063dcd81
commit
9ce3d89c81
1 changed files with 4 additions and 4 deletions
|
@ -292,10 +292,10 @@ class SchemaShell extends AppShell {
|
||||||
$Schema = $this->Schema->load($options);
|
$Schema = $this->Schema->load($options);
|
||||||
|
|
||||||
if (!$Schema) {
|
if (!$Schema) {
|
||||||
$this->err(__d('cake_console', 'The chosen schema could not be loaded. Attempted to load:'));
|
$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', '- file: %s', $this->Schema->path . DS . $this->Schema->file));
|
||||||
$this->err(__d('cake_console', 'Name: %s', $this->Schema->name));
|
$this->err(__d('cake_console', '- name: %s', $this->Schema->name));
|
||||||
return $this->_stop();
|
return $this->_stop(2);
|
||||||
}
|
}
|
||||||
$table = null;
|
$table = null;
|
||||||
if (isset($this->args[1])) {
|
if (isset($this->args[1])) {
|
||||||
|
|
Loading…
Reference in a new issue