print invalid props

This commit is contained in:
Jacson Passold 2017-12-11 12:57:15 -02:00
parent 36fcc6e7f3
commit a00bbc3abb
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Entity_Factory {
if ($this->entity->validate()) {
$this->entity = $this->repository->insert( $this->entity );
} else {
throw new \ErrorException( __( 'The entity wasn\'t validated.' ) );
throw new \ErrorException( __( 'The entity wasn\'t validated.'.print_r($this->entity->get_errors(), true) ) );
}
} else {