mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-10 09:19:18 -04:00
Dump out validation errors so that we have some extra information in the logs.
This commit is contained in:
@@ -28,4 +28,11 @@ class Kohana_Exception extends Kohana_Exception_Core {
|
||||
$e->getFile(), $e->getLine(),
|
||||
$e->getTraceAsString());
|
||||
}
|
||||
|
||||
public static function handle(Exception $e) {
|
||||
if ($e instanceof ORM_Validation_Exception) {
|
||||
Kohana_Log::add("error", "Validation errors: " . print_r($e->validation->errors(), 1));
|
||||
}
|
||||
return parent::handle($e);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user