Fix error due to bad exception throwing

This commit is contained in:
Albert Santoni 2014-06-11 13:35:10 -04:00
parent 560d1a9b14
commit e5a74e7285
1 changed files with 1 additions and 1 deletions

View File

@ -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();