mirror of
https://github.com/minio/minio.git
synced 2025-05-22 01:53:55 -04:00
fix: unable to get net.Interface cause panic (#21277)
This commit is contained in:
parent
1d50cae43d
commit
ef9b03fbf5
@ -75,7 +75,10 @@ var matchingFuncNames = [...]string{
|
|||||||
var (
|
var (
|
||||||
quietFlag, jsonFlag, anonFlag bool
|
quietFlag, jsonFlag, anonFlag bool
|
||||||
// Custom function to format error
|
// 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.
|
// EnableQuiet - turns quiet option on.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user