mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 05:35:11 +00:00
fix error handling for following-feed
This commit is contained in:
parent
ce5c156e42
commit
8f14fec45b
1 changed files with 5 additions and 1 deletions
|
@ -89,7 +89,11 @@ async function selectUser(userId: string): Promise<void> {
|
|||
.then(user => selectedUser.value = user)
|
||||
.catch(error => {
|
||||
console.error('Error fetching user info', error);
|
||||
return selectedUserError.value = String(error);
|
||||
|
||||
return selectedUserError.value =
|
||||
typeof(error) === 'string'
|
||||
? String(error)
|
||||
: JSON.stringify(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue