mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Catch errors while rerunning modules
This commit is contained in:
@@ -430,9 +430,13 @@ function applyChangeset({
|
||||
|
||||
reloadId += 1;
|
||||
|
||||
toRerun.forEach(moduleId => {
|
||||
rerunFile(moduleId);
|
||||
});
|
||||
try {
|
||||
toRerun.forEach(moduleId => {
|
||||
rerunFile(moduleId);
|
||||
});
|
||||
} catch (error) {
|
||||
console.error('HMR: Error while applying changes:', error);
|
||||
}
|
||||
|
||||
console.log('HMR: finished updating');
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user