Skip to content

Commit

Permalink
BUGFIX Make sure a message is set on ValidationException objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
drzax committed Dec 5, 2012
1 parent ab260d4 commit 205ee42
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/ValidationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 205ee42

Please sign in to comment.