From 3b2223136e512c6dbbcf9ab90b1a90fe9670671d Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 2 Feb 2024 21:30:59 +0000 Subject: [PATCH] Fixed exception not being forwarded properly. --- scripts/eepromv1a.js/main.js | 2 +- src/Uploads/UploadsRoutes.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/eepromv1a.js/main.js b/scripts/eepromv1a.js/main.js index 8bba72d..db4d1cd 100644 --- a/scripts/eepromv1a.js/main.js +++ b/scripts/eepromv1a.js/main.js @@ -152,7 +152,7 @@ const EEPROM = function(appId, endPoint, auth) { } catch(ex) { if(!ex.abort) { console.error(ex); - throw uploadGenericError(); + throw ex; } throw uploadAbortedError(); diff --git a/src/Uploads/UploadsRoutes.php b/src/Uploads/UploadsRoutes.php index a068d30..5322b93 100644 --- a/src/Uploads/UploadsRoutes.php +++ b/src/Uploads/UploadsRoutes.php @@ -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; }