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:
parent
890abfdaff
commit
e5a7ae8ec0
@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user