Fix error checking
This commit is contained in:
parent
6bee23047a
commit
54a4d01bf6
|
@ -1123,7 +1123,7 @@ func (n *Node) DeriveVaultToken(args *structs.DeriveVaultTokenRequest,
|
|||
|
||||
if rerr, ok := createErr.(*structs.RecoverableError); ok {
|
||||
reply.Error = rerr
|
||||
} else if err != nil {
|
||||
} else {
|
||||
reply.Error = structs.NewRecoverableError(createErr, false).(*structs.RecoverableError)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue