From 3accdc322c22db86f0b169ad7c4cf4cb5f72f40d Mon Sep 17 00:00:00 2001 From: Sami Mazouz Date: Sun, 7 May 2023 22:44:25 +0100 Subject: [PATCH] fix(regression): fetch promise rejections not handled Signed-off-by: Sami Mazouz --- framework/core/views/install/install.php | 3 +++ framework/core/views/install/update.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/framework/core/views/install/install.php b/framework/core/views/install/install.php index dd7a94c195..f28fea675e 100644 --- a/framework/core/views/install/install.php +++ b/framework/core/views/install/install.php @@ -93,6 +93,9 @@ button.textContent = 'Install Flarum'; }); } + }) + .catch(error => { + console.error('Error:', error); }); return false; diff --git a/framework/core/views/install/update.php b/framework/core/views/install/update.php index da502caf83..1cbbc1639f 100644 --- a/framework/core/views/install/update.php +++ b/framework/core/views/install/update.php @@ -44,6 +44,9 @@ button.textContent = 'Update Flarum'; }); } + }) + .catch(error => { + console.error('Error:', error); }); return false;