MDL-57139 amd/templates: catch unhandled promise failure
This commit is contained in:
@@ -170,7 +170,7 @@ define(['core/mustache',
|
||||
ready.reject('Invalid icon system specified' + config.iconsystemmodule);
|
||||
} else {
|
||||
iconSystem = system;
|
||||
system.init().then(ready.resolve);
|
||||
system.init().then(ready.resolve).catch(notification.exception);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -698,7 +698,7 @@ define(['core/mustache',
|
||||
ready.reject('Invalid icon system specified' + config.iconsystem);
|
||||
} else {
|
||||
iconSystem = system;
|
||||
system.init().then(ready.resolve);
|
||||
system.init().then(ready.resolve).catch(notification.exception);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user