mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-07-27 13:49:57 +00:00
TUN-3107: UnregisterConnection shouldn't wrap nil error as RPC error
This commit is contained in:
@@ -229,5 +229,8 @@ func (c TunnelServer_PogsClient) Unregister(ctx context.Context) error {
|
||||
return nil
|
||||
})
|
||||
_, err := promise.Struct()
|
||||
return wrapRPCError(err)
|
||||
if err != nil {
|
||||
return wrapRPCError(err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user