Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX Make sure a message is set on ValidationException objects.

  • Loading branch information...
commit 205ee42110c5d8e2386fe629e508fd0a4ecc88f7 1 parent ab260d4
@drzax drzax authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  model/ValidationException.php
View
1  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;
Please sign in to comment.
Something went wrong with that request. Please try again.