mirror of
https://activitypub.software/TransFem-org/Sharkey.git
synced 2024-12-13 21:40:45 +01: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