swap error responses (#6421)

This commit is contained in:
joe petrowski authored and GitHub committed 2022-12-13 08:32:27 +00:00
1 parent 01e43131ac
commit 6931a9ab75
1 file changed
+2 -2
+2 -2
View File
@@ -1149,11 +1149,11 @@ impl<T: Config> Pallet<T> {
let channel_id = HrmpChannelId { sender: origin, recipient };
ensure!(
<Self as Store>::HrmpOpenChannelRequests::get(&channel_id).is_none(),
Error::<T>::OpenHrmpChannelAlreadyExists,
Error::<T>::OpenHrmpChannelAlreadyRequested,
);
ensure!(
<Self as Store>::HrmpChannels::get(&channel_id).is_none(),
Error::<T>::OpenHrmpChannelAlreadyRequested,
Error::<T>::OpenHrmpChannelAlreadyExists,
);
let egress_cnt =