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) {
|
} catch(ex) {
|
||||||
if(!ex.abort) {
|
if(!ex.abort) {
|
||||||
console.error(ex);
|
console.error(ex);
|
||||||
throw uploadGenericError();
|
throw ex;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw uploadAbortedError();
|
throw uploadAbortedError();
|
||||||
|
|
|
@ -131,7 +131,7 @@ class UploadsRoutes implements IRouteHandler {
|
||||||
$content = $request->getContent();
|
$content = $request->getContent();
|
||||||
|
|
||||||
try {
|
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) {
|
} catch(RuntimeException $ex) {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue