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.
This commit is contained in:
Danny Lin 2021-01-27 16:56:33 -08:00 committed by Daniel Micay
parent 890abfdaff
commit e5a7ae8ec0

View File

@ -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;
}
};
}