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 :
This commit is contained in:
zachary-berdell-elliott 2024-09-06 03:51:10 -06:00 committed by GitHub
parent 5d7f44fc61
commit 1c0ff13483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ const CloneCollection = ({ onClose, collection }) => {
toast.success('Collection created'); toast.success('Collection created');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occurred while creating the collection')); .catch((e) => toast.error('An error occurred while creating the collection - ' + e));
} }
}); });

View File

@ -37,7 +37,7 @@ const CreateCollection = ({ onClose }) => {
toast.success('Collection created'); toast.success('Collection created');
onClose(); onClose();
}) })
.catch(() => toast.error('An error occurred while creating the collection')); .catch((e) => toast.error('An error occurred while creating the collection - ' + e));
} }
}); });