show load language error only when language resource does not exist in cache
This commit is contained in:
parent
d34aa1ea83
commit
d63058c3e0
|
@ -115,10 +115,12 @@
|
|||
return deferred.resolve(languageObject);
|
||||
}).catch(function onError(response) {
|
||||
ariaNgLogService.warn('[ariaNgLanguageLoader] cannot get language resource');
|
||||
if (!languageResource) {
|
||||
ariaNgNotificationService.notifyInPage('', 'AriaNg cannot get language resources, and will display in default language.', {
|
||||
type: 'error',
|
||||
delay: false
|
||||
});
|
||||
}
|
||||
return deferred.reject(options.key);
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue