Fix error due to bad exception throwing
This commit is contained in:
parent
560d1a9b14
commit
e5a74e7285
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
|||
}
|
||||
|
||||
if (!$fileForm->isValidPartial($whiteList)) {
|
||||
throw Exception("Data validation failed");
|
||||
throw new Exception("Data validation failed");
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
$errors = $fileForm->getErrors();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue