Fix error due to bad exception throwing
This commit is contained in:
parent
560d1a9b14
commit
e5a74e7285
|
@ -409,7 +409,7 @@ class Rest_MediaController extends Zend_Rest_Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$fileForm->isValidPartial($whiteList)) {
|
if (!$fileForm->isValidPartial($whiteList)) {
|
||||||
throw Exception("Data validation failed");
|
throw new Exception("Data validation failed");
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$errors = $fileForm->getErrors();
|
$errors = $fileForm->getErrors();
|
||||||
|
|
Loading…
Reference in New Issue