diff --git a/projects/common/src/fm/services/itemtype.service.ts b/projects/common/src/fm/services/itemtype.service.ts index f844360..87af0d8 100644 --- a/projects/common/src/fm/services/itemtype.service.ts +++ b/projects/common/src/fm/services/itemtype.service.ts @@ -63,7 +63,10 @@ export class ItemTypeService { this.itemTypes = itemTypes; //return data; }) - .catch(() => this.itemTypes = null); + .catch((error) => { + console.log(error); + this.itemTypes = null + }); } else { return new Promise((resolve) => {resolve()}); } diff --git a/projects/common/src/fm/shared/app.config.factory.ts b/projects/common/src/fm/shared/app.config.factory.ts index cf6ff17..c65f622 100644 --- a/projects/common/src/fm/shared/app.config.factory.ts +++ b/projects/common/src/fm/shared/app.config.factory.ts @@ -13,7 +13,10 @@ export function appConfigFactory(_injector:Injector, appConfig: AppConfig, oauth oauthService.setStorage(authStorage); oauthService.setupAutomaticSilentRefresh(); }).then(() => oauthService.loadDiscoveryDocument() - ).then(() => resolve()).catch(() => reject()); + ).then(() => resolve()).catch((error) => { + console.log(error); + reject(); + }); }); } }