Skip to content

Commit 0ef2f55

Browse files
userpass: fix the wrong error return value (#1055)
Signed-off-by: cangqiaoyuzhuo <850072022@qq.com>
1 parent 17824a9 commit 0ef2f55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/credential/userpass/path_user_password.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (b *backend) pathUserPasswordUpdate(ctx context.Context, req *logical.Reque
6565

6666
userErr, intErr := b.updateUserPassword(req, d, userEntry)
6767
if intErr != nil {
68-
return nil, err
68+
return nil, intErr
6969
}
7070
if userErr != nil {
7171
return logical.ErrorResponse(userErr.Error()), logical.ErrInvalidRequest

0 commit comments

Comments
 (0)