mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Better error message on bad Enum default
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@97979 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0f810b9a3f
commit
11368564a3
@ -30,7 +30,7 @@ class Enum extends DBField {
|
||||
if(in_array($default, $enum)) {
|
||||
$this->default = $default;
|
||||
} else {
|
||||
user_error("Enum::__construct() The default value does not match any item in the enumeration", E_USER_ERROR);
|
||||
user_error("Enum::__construct() The default value '$default' does not match any item in the enumeration", E_USER_ERROR);
|
||||
}
|
||||
|
||||
// By default, set the default value to the first item
|
||||
|
Loading…
Reference in New Issue
Block a user