From d77a1537b72f75af0f1178b87c76cd1da21f55fc Mon Sep 17 00:00:00 2001 From: moksha-hub Date: Thu, 19 Dec 2024 14:16:38 +0530 Subject: [PATCH] Update utils.js --- src/api/helpers/utils.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/helpers/utils.js b/src/api/helpers/utils.js index 96eae025e..0a90566b6 100644 --- a/src/api/helpers/utils.js +++ b/src/api/helpers/utils.js @@ -94,8 +94,7 @@ export async function getBrowsedRelationships( }, []); } catch (error) { - console.error('Error processing relationships:', error); - throw new Error('Failed to fetch browsed relationships'); + const errorMessage = 'Failed to fetch browsed relationships'; + throw new Error(errorMessage); } } -