Added a thrown 'Error' in favorites logic