better error outputting

pull/61/head
Christophe Vandeplas 2012-06-03 22:51:56 +02:00
parent 39fb9bca1d
commit f455405475
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ class EventsController extends AppController {
}
return true;
} else {
throw new MethodNotAllowedException("Validation ERROR: \n".var_export($this->Event->validationErrors, true));
return false;
}
}