Skip to content

Commit

Permalink
Added a more descriptive error message on create and clone collection. (
Browse files Browse the repository at this point in the history
usebruno#3046)

* Added a more descriptive error message on create and clone collection.

* Using - instead of :
  • Loading branch information
zachary-berdell-elliott authored Sep 6, 2024
1 parent 5d7f44f commit 1c0ff13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
});

Expand Down

0 comments on commit 1c0ff13

Please sign in to comment.