diff --git a/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/DeployHistory/index.tsx b/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/DeployHistory/index.tsx index f0c0d3e84..35c219b72 100644 --- a/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/DeployHistory/index.tsx +++ b/kraken-app/kraken-app-portal/src/pages/NewAPIMapping/components/DeployHistory/index.tsx @@ -85,7 +85,12 @@ const DeployHistory = ({ notification.success({ message: get(res, "message") }); } } catch (error) { - notification.error({ message: get(error, "reason") }); + const status = get(error, "response.status"); + let errorMessage = get(error, "reason") ?? ''; + if (status === 403) { + errorMessage = "You do not have permission to perform the 'Verify' action"; + } + notification.error({ message: errorMessage || 'An unexpected error occurred during verification.' }); } };