diff --git a/builtin/credential/userpass/path_users.go b/builtin/credential/userpass/path_users.go index ae9af65b8..140025acc 100644 --- a/builtin/credential/userpass/path_users.go +++ b/builtin/credential/userpass/path_users.go @@ -199,7 +199,7 @@ func (b *backend) userCreateUpdate(ctx context.Context, req *logical.Request, d if _, ok := d.GetOk("password"); ok { userErr, intErr := b.updateUserPassword(req, d, userEntry) if intErr != nil { - return nil, err + return nil, intErr } if userErr != nil { return logical.ErrorResponse(userErr.Error()), logical.ErrInvalidRequest