mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +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…
	
	Add table
		
		Reference in a new issue