dbplugin: fix error message in DeleteUser (#12351)

* dbplugin: fix error message in DeleteUser

* add changelog
This commit is contained in:
Calvin Leung Huang 2021-08-18 16:12:40 -07:00 committed by GitHub
parent b868dac12c
commit 05103627d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
changelog/12351.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note: bug
sdk/database: Fix a DeleteUser error message on the gRPC client.
```

View File

@ -200,7 +200,7 @@ func (c gRPCClient) DeleteUser(ctx context.Context, req DeleteUserRequest) (Dele
if c.doneCtx.Err() != nil {
return DeleteUserResponse{}, ErrPluginShutdown
}
return DeleteUserResponse{}, fmt.Errorf("unable to update user: %w", err)
return DeleteUserResponse{}, fmt.Errorf("unable to delete user: %w", err)
}
return deleteUserRespFromProto(rpcResp)