mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-07 08:34:15 +01:00
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:
parent
5d7f44fc61
commit
1c0ff13483
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user