MINOR: Correct exception message in constructor

This commit is contained in:
Graeme Smith 2013-02-18 15:01:48 +00:00
parent fe04753be2
commit a1114b8fcb

View File

@ -161,7 +161,7 @@ class Form extends RequestHandler {
throw new InvalidArgumentException('$fields must be a valid FieldList instance'); throw new InvalidArgumentException('$fields must be a valid FieldList instance');
} }
if(!$actions instanceof FieldList) { 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) { if($validator && !$validator instanceof Validator) {
throw new InvalidArgumentException('$validator must be a Valdidator instance'); throw new InvalidArgumentException('$validator must be a Valdidator instance');