We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9897991 commit 84c5fd5Copy full SHA for 84c5fd5
portal-ui/src/screens/Console/Policies/PolicyDetails.tsx
@@ -197,9 +197,17 @@ const PolicyDetails = ({ classes }: IPolicyDetailsProps) => {
197
dispatch(setSnackBarMessage("Policy successfully updated"));
198
refreshPolicyDetails();
199
})
200
- .catch((err: ErrorResponseHandler) => {
+ .catch((err: HttpResponse<Policy, Error>) => {
201
setAddLoading(false);
202
- dispatch(setErrorSnackMessage(err));
+ dispatch(
203
+ setErrorSnackMessage({
204
+ errorMessage: "There was an error updating the Policy ",
205
+ detailedError:
206
+ "There was an error updating the Policy: " +
207
+ (err.error.detailedMessage || "") +
208
+ ". Please check Policy syntax.",
209
+ })
210
+ );
211
});
212
} else {
213
0 commit comments