mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
server-info: Change Error type to string (#4346)
Golang std error type doesn't marshal/unmarshal with json. So errors are not actually being sent when a client calls ServerInfo() API.
This commit is contained in:
committed by
Harshavardhana
parent
87fb911d38
commit
465274cd21
@@ -84,7 +84,7 @@ type ServerInfoData struct {
|
||||
|
||||
// ServerInfo holds server information result of one node
|
||||
type ServerInfo struct {
|
||||
Error error `json:"error"`
|
||||
Error string `json:"error"`
|
||||
Addr string `json:"addr"`
|
||||
Data *ServerInfoData `json:"data"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user