diff options
author | Eric Bailey <git@esb.lol> | 2023-11-04 12:58:50 -0500 |
---|---|---|
committer | Eric Bailey <git@esb.lol> | 2023-11-04 12:58:50 -0500 |
commit | 7e29ebbadbf6246a664a2bf45b3798b3ecd87955 (patch) | |
tree | 4808764811049c27748112cdfa575abeef8fb948 /src/state/models/ui/profile.ts | |
parent | df0dcf32f99631c52b039c7f1934481924d37465 (diff) | |
download | voidsky-7e29ebbadbf6246a664a2bf45b3798b3ecd87955.tar.zst |
Fix other error logs while I'm at it
Diffstat (limited to 'src/state/models/ui/profile.ts')
-rw-r--r-- | src/state/models/ui/profile.ts | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/state/models/ui/profile.ts b/src/state/models/ui/profile.ts index 8525426bf..47a99a8fc 100644 --- a/src/state/models/ui/profile.ts +++ b/src/state/models/ui/profile.ts @@ -223,10 +223,14 @@ export class ProfileUiModel { await Promise.all([ this.profile .setup() - .catch(err => this.rootStore.log.error('Failed to fetch profile', err)), + .catch(err => + this.rootStore.log.error('Failed to fetch profile', {error: err}), + ), this.feed .setup() - .catch(err => this.rootStore.log.error('Failed to fetch feed', err)), + .catch(err => + this.rootStore.log.error('Failed to fetch feed', {error: err}), + ), ]) runInAction(() => { this.isAuthenticatedUser = @@ -237,7 +241,9 @@ export class ProfileUiModel { this.lists.source = this.profile.did this.lists .loadMore() - .catch(err => this.rootStore.log.error('Failed to fetch lists', err)) + .catch(err => + this.rootStore.log.error('Failed to fetch lists', {error: err}), + ) } async refresh() { |