mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #1196 from Instagraeme/patch-1
Correct exception message in form constructor
This commit is contained in:
commit
d00fa67f3e
@ -161,7 +161,7 @@ class Form extends RequestHandler {
|
||||
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
|
||||
}
|
||||
if(!$actions instanceof FieldList) {
|
||||
throw new InvalidArgumentException('$fields must be a valid FieldList instance');
|
||||
throw new InvalidArgumentException('$actions must be a valid FieldList instance');
|
||||
}
|
||||
if($validator && !$validator instanceof Validator) {
|
||||
throw new InvalidArgumentException('$validator must be a Valdidator instance');
|
||||
|
Loading…
Reference in New Issue
Block a user