mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
UI: Show error when connection roles fail to update on role create (#10980)
* Show error when connection roles fail to update on role create * Clean up errors for role, remove bad state setting after transition * Add changelog
This commit is contained in:
@@ -8,7 +8,7 @@ const SHOW_ROUTE = 'vault.cluster.secrets.backend.show';
|
||||
|
||||
const getErrorMessage = errors => {
|
||||
let errorMessage = errors?.join('. ') || 'Something went wrong. Check the Vault logs for more information.';
|
||||
if (errors?.join(' ').indexOf('failed to verify')) {
|
||||
if (errorMessage.indexOf('failed to verify') >= 0) {
|
||||
errorMessage =
|
||||
'There was a verification error for this connection. Check the Vault logs for more information.';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user