Success message appears along with the error message when you delete the policy that has snapshots
When you delete the policy that has snapshots, the following success and error messages appear. However, the policy is not deleted and only error message should appear.
Error: Invalid state: This policy contains snapshots. Please delete all snapshots and try again.
Success: Deleted: <policy name>