mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-17 20:17:00 +02:00
Fix nil value panic when Consul returns a user error (#2145)
This commit is contained in:
parent
577366ad9a
commit
b9be3da2bc
@ -52,7 +52,7 @@ func (b *backend) pathTokenRead(
|
|||||||
return nil, intErr
|
return nil, intErr
|
||||||
}
|
}
|
||||||
if userErr != nil {
|
if userErr != nil {
|
||||||
return logical.ErrorResponse(err.Error()), nil
|
return logical.ErrorResponse(userErr.Error()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate a name for the token
|
// Generate a name for the token
|
||||||
|
Loading…
Reference in New Issue
Block a user