Improve error logging
This commit is contained in:
parent
6885fb2b41
commit
4eabc2d65a
49 changed files with 212 additions and 188 deletions
|
@ -114,28 +114,20 @@ export class ProfileUiModel {
|
|||
await Promise.all([
|
||||
this.profile
|
||||
.setup()
|
||||
.catch(err =>
|
||||
this.rootStore.log.error('Failed to fetch profile', err.toString()),
|
||||
),
|
||||
.catch(err => this.rootStore.log.error('Failed to fetch profile', err)),
|
||||
this.feed
|
||||
.setup()
|
||||
.catch(err =>
|
||||
this.rootStore.log.error('Failed to fetch feed', err.toString()),
|
||||
),
|
||||
.catch(err => this.rootStore.log.error('Failed to fetch feed', err)),
|
||||
])
|
||||
if (this.isUser) {
|
||||
await this.memberships
|
||||
.setup()
|
||||
.catch(err =>
|
||||
this.rootStore.log.error('Failed to fetch members', err.toString()),
|
||||
)
|
||||
.catch(err => this.rootStore.log.error('Failed to fetch members', err))
|
||||
}
|
||||
if (this.isScene) {
|
||||
await this.members
|
||||
.setup()
|
||||
.catch(err =>
|
||||
this.rootStore.log.error('Failed to fetch members', err.toString()),
|
||||
)
|
||||
.catch(err => this.rootStore.log.error('Failed to fetch members', err))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue