mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-04-18 03:29:19 -04:00
Add special output support for ORM_Validation_Exception
This commit is contained in:
@@ -57,6 +57,12 @@ foreach ($results as $class => $methods) {
|
||||
if ($result->getMessage()) {
|
||||
echo " ", $result->getMessage(), "\n";
|
||||
}
|
||||
if ($result instanceof ORM_Validation_Exception) {
|
||||
echo " Validation errors:\n";
|
||||
foreach ($result->validation->errors() as $key => $value) {
|
||||
echo " $key: $value\n";
|
||||
}
|
||||
}
|
||||
echo " ", $result->getFile(), " (Line ", $result->getLine(), ")\n";
|
||||
echo "\n";
|
||||
echo $result->getTraceAsString(), "\n";
|
||||
|
||||
Reference in New Issue
Block a user