From 1c0ff13483debff02c7e5d61f58be9e6d71494b3 Mon Sep 17 00:00:00 2001 From: zachary-berdell-elliott Date: Fri, 6 Sep 2024 03:51:10 -0600 Subject: [PATCH] Added a more descriptive error message on create and clone collection. (#3046) * Added a more descriptive error message on create and clone collection. * Using - instead of : --- .../Sidebar/Collections/Collection/CloneCollection/index.js | 2 +- .../bruno-app/src/components/Sidebar/CreateCollection/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js index 0b073fa77..1dccf6adb 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CloneCollection/index.js @@ -44,7 +44,7 @@ const CloneCollection = ({ onClose, collection }) => { toast.success('Collection created'); onClose(); }) - .catch(() => toast.error('An error occurred while creating the collection')); + .catch((e) => toast.error('An error occurred while creating the collection - ' + e)); } }); diff --git a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js index ea5a17397..996c314df 100644 --- a/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js +++ b/packages/bruno-app/src/components/Sidebar/CreateCollection/index.js @@ -37,7 +37,7 @@ const CreateCollection = ({ onClose }) => { toast.success('Collection created'); onClose(); }) - .catch(() => toast.error('An error occurred while creating the collection')); + .catch((e) => toast.error('An error occurred while creating the collection - ' + e)); } });