Fixed exception not being forwarded properly.
This commit is contained in:
parent
9ca0587189
commit
3b2223136e
2 changed files with 2 additions and 2 deletions
|
@ -152,7 +152,7 @@ const EEPROM = function(appId, endPoint, auth) {
|
|||
} catch(ex) {
|
||||
if(!ex.abort) {
|
||||
console.error(ex);
|
||||
throw uploadGenericError();
|
||||
throw ex;
|
||||
}
|
||||
|
||||
throw uploadAbortedError();
|
||||
|
|
|
@ -131,7 +131,7 @@ class UploadsRoutes implements IRouteHandler {
|
|||
$content = $request->getContent();
|
||||
|
||||
try {
|
||||
$appInfo = $this->appsCtx->getApp($content->getParam('src', FILTER_VALIDATE_INT));
|
||||
$appInfo = $this->appsCtx->getApp((string)$content->getParam('src', FILTER_VALIDATE_INT));
|
||||
} catch(RuntimeException $ex) {
|
||||
return 404;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue