Skip to content

Commit

Permalink
display offending model and column
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Oct 20, 2011
1 parent fb4a003 commit a02fd82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/CakeSchema.php
Expand Up @@ -590,7 +590,7 @@ protected function _columns(&$Obj) {
$value['key'] = 'primary';
}
if (!isset($db->columns[$value['type']])) {
trigger_error(__d('cake_dev', 'Schema generation error: invalid column type %s does not exist in DBO', $value['type']), E_USER_NOTICE);
trigger_error(__d('cake_dev', 'Schema generation error: invalid column type %s for %s.%s does not exist in DBO', $value['type'], $Obj->name, $name), E_USER_NOTICE);
continue;
} else {
$defaultCol = $db->columns[$value['type']];
Expand Down

0 comments on commit a02fd82

Please sign in to comment.