mirror of
https://github.com/minio/minio.git
synced 2026-05-28 04:03:23 -04:00
fix: unable to get net.Interface cause panic (#21277)
This commit is contained in:
parent
1d50cae43d
commit
ef9b03fbf5
1 changed files with 4 additions and 1 deletions
|
|
@ -75,7 +75,10 @@ var matchingFuncNames = [...]string{
|
|||
var (
|
||||
quietFlag, jsonFlag, anonFlag bool
|
||||
// Custom function to format error
|
||||
errorFmtFunc func(string, error, bool) string
|
||||
// can be registered by RegisterError
|
||||
errorFmtFunc = func(introMsg string, err error, jsonFlag bool) string {
|
||||
return fmt.Sprintf("msg: %s\n err:%s", introMsg, err)
|
||||
}
|
||||
)
|
||||
|
||||
// EnableQuiet - turns quiet option on.
|
||||
|
|
|
|||
Loading…
Reference in a new issue