Permalink
Browse files

BUGFIX Make sure a message is set on ValidationException objects.

  • Loading branch information...
1 parent ab260d4 commit 205ee42110c5d8e2386fe629e508fd0a4ecc88f7 @drzax drzax committed Dec 5, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 model/ValidationException.php
@@ -17,6 +17,7 @@ class ValidationException extends Exception {
public function __construct($result = null, $message = null, $code = 0) {
if($result instanceof ValidationResult) {
$this->result = $result;
+ $message = $result->message();
} else {
$code = $message;
$message = $result;

0 comments on commit 205ee42

Please sign in to comment.