Fix error checking

This commit is contained in:
Alex Dadgar 2017-03-29 13:59:43 -07:00
parent 6bee23047a
commit 54a4d01bf6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}