Fixed exception not being forwarded properly.

This commit is contained in:
flash 2024-02-02 21:30:59 +00:00
parent 9ca0587189
commit 3b2223136e
2 changed files with 2 additions and 2 deletions

View file

@ -152,7 +152,7 @@ const EEPROM = function(appId, endPoint, auth) {
} catch(ex) {
if(!ex.abort) {
console.error(ex);
throw uploadGenericError();
throw ex;
}
throw uploadAbortedError();

View file

@ -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;
}