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:
@@ -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;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user