From eeec42601242d2c26fbe2642a06573c55bc0ed37 Mon Sep 17 00:00:00 2001 From: Alex Rock Ancelet Date: Mon, 18 Nov 2024 09:18:53 +0100 Subject: [PATCH] Add error catch for db requests in case it fails --- js/glpi_install.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/glpi_install.js b/js/glpi_install.js index 8a0613f242a..ba20e0bb25c 100644 --- a/js/glpi_install.js +++ b/js/glpi_install.js @@ -97,6 +97,7 @@ success_element.querySelector('button').removeAttribute('disabled'); } }) + .catch(err => message(message_element, `Request error:\n${err.message||err.toString()}`)) .finally(() => { request_running = false; });