AW-6046 Add logging

This commit is contained in:
Peter (extern) 2024-04-15 15:03:05 +02:00
parent 7f37363486
commit b90bb25ae7
2 changed files with 8 additions and 2 deletions

View File

@ -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()});
}

View File

@ -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();
});
});
}
}