mirror of
https://github.com/pgsty/minio.git
synced 2026-07-15 16:30:29 +03:00
disconnected returns, an unexpected error to List() returning 500s (#18959)
provide the error string appropriately so that the matching of error types works. Also add a string based fallback for the said error.
This commit is contained in:
@@ -1374,7 +1374,7 @@ func (c *Connection) handleDisconnectClientMux(m message) {
|
||||
if m.Flags&FlagPayloadIsErr != 0 {
|
||||
v.error(RemoteErr(m.Payload))
|
||||
} else {
|
||||
v.error("remote disconnected")
|
||||
v.error(ErrDisconnected)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user