dbplugin: fix error message in DeleteUser (#12351)
* dbplugin: fix error message in DeleteUser * add changelog
This commit is contained in:
parent
b868dac12c
commit
05103627d3
|
@ -0,0 +1,3 @@
|
||||||
|
```release-note: bug
|
||||||
|
sdk/database: Fix a DeleteUser error message on the gRPC client.
|
||||||
|
```
|
|
@ -200,7 +200,7 @@ func (c gRPCClient) DeleteUser(ctx context.Context, req DeleteUserRequest) (Dele
|
||||||
if c.doneCtx.Err() != nil {
|
if c.doneCtx.Err() != nil {
|
||||||
return DeleteUserResponse{}, ErrPluginShutdown
|
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)
|
return deleteUserRespFromProto(rpcResp)
|
||||||
|
|
Loading…
Reference in New Issue