MDL-57139 amd/templates: catch unhandled promise failure

This commit is contained in:
Dan Poltawski
2017-06-01 14:54:39 +01:00
parent 4276f9c717
commit 751ec02540
+2 -2
View File
@@ -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);
}
});