Skip to content

Commit

Permalink
The ValidationFailed exception thrown by the Observer_Validation now …
Browse files Browse the repository at this point in the history
…contains the html output of Validation::show_errors() as the message.
  • Loading branch information
Jelmer Schreuder committed Jul 26, 2011
1 parent 6e28a07 commit ebbd0be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/observer/validation.php
Expand Up @@ -106,7 +106,7 @@ public function validate(Model $obj)

if ($val->run($input) === false)
{
throw new ValidationFailed();
throw new ValidationFailed($val->show_errors());
}
else
{
Expand Down

0 comments on commit ebbd0be

Please sign in to comment.