From e5a7ae8ec0ab3c09f5a32daee52348b09ddc5f5b Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Wed, 27 Jan 2021 16:56:33 -0800 Subject: [PATCH] web-install: Rethrow errors after handling After handling errors and showing them to the user, we can rethrow them to make them show up in the console. This helps greatly with debugging. --- static/js/web-install.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/web-install.js b/static/js/web-install.js index 4bf0fb60..1395971a 100644 --- a/static/js/web-install.js +++ b/static/js/web-install.js @@ -180,6 +180,8 @@ function addButtonHook(id, callback) { } catch (error) { statusCallback(`Error: ${error.message}`); statusField.className = "error-text"; + // Rethrow the error so it shows up in the console + throw error; } }; }