diff options
| author | Danny Lin <danny@kdrag0n.dev> | 2021-01-27 16:56:33 -0800 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2021-01-27 20:24:49 -0500 |
| commit | e5a7ae8ec0ab3c09f5a32daee52348b09ddc5f5b (patch) | |
| tree | cd28bac2620553a38904a92413b8f24d4247b957 /static | |
| parent | 890abfdaff667411a4ffb7b35aa1c36554fdc7c0 (diff) | |
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.
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/web-install.js | 2 |
1 files changed, 2 insertions, 0 deletions
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; } }; } |
