Skip to content

Commit

Permalink
Fixed: Toast message displayed for duplicate Internal ID(hotwax#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Sourabh committed Mar 19, 2024
1 parent 3888b38 commit 8d3673a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/views/CreateSecurityGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,13 @@ export default defineComponent({
} else {
throw resp.data
}
} catch(err) {
console.error(err)
showToast(translate("Failed to create security group."))
} catch(err: any) {
console.error(err);
if (err.response?.data?.error?.message) {
showToast(err.response.data.error.message)
} else {
showToast(translate("Failed to create security group."))
}
}
}
},
Expand Down

0 comments on commit 8d3673a

Please sign in to comment.