mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Make schema errors clearer.
When a schema fails because of the name, the error should display the name & file name that it attempted to load. This gives people a slightly better chance of figuring things out.
This commit is contained in:
parent
0d826528e1
commit
5b641287e9
1 changed files with 3 additions and 1 deletions
|
@ -281,7 +281,9 @@ class SchemaShell extends AppShell {
|
|||
$Schema = $this->Schema->load($options);
|
||||
|
||||
if (!$Schema) {
|
||||
$this->err(__d('cake_console', '%s could not be loaded', $this->Schema->path . DS . $this->Schema->file));
|
||||
$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));
|
||||
$this->_stop();
|
||||
}
|
||||
$table = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue