diff --git a/portal-ui/src/screens/Console/Policies/PolicyDetails.tsx b/portal-ui/src/screens/Console/Policies/PolicyDetails.tsx index 4a25f2e05..632d64e80 100644 --- a/portal-ui/src/screens/Console/Policies/PolicyDetails.tsx +++ b/portal-ui/src/screens/Console/Policies/PolicyDetails.tsx @@ -197,9 +197,17 @@ const PolicyDetails = ({ classes }: IPolicyDetailsProps) => { dispatch(setSnackBarMessage("Policy successfully updated")); refreshPolicyDetails(); }) - .catch((err: ErrorResponseHandler) => { + .catch((err: HttpResponse) => { setAddLoading(false); - dispatch(setErrorSnackMessage(err)); + dispatch( + setErrorSnackMessage({ + errorMessage: "There was an error updating the Policy ", + detailedError: + "There was an error updating the Policy: " + + (err.error.detailedMessage || "") + + ". Please check Policy syntax.", + }) + ); }); } else { setAddLoading(false);