AW-6046 Add logging
This commit is contained in:
parent
7f37363486
commit
b90bb25ae7
@ -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<void>((resolve) => {resolve()});
|
||||
}
|
||||
|
@ -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();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user