mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
Start using error wrapping with fmt.Errorf (#8588)
Use fatih/errwrap to fix all the code to use error wrapping with fmt.Errorf()
This commit is contained in:
+1
-1
@@ -118,7 +118,7 @@ func NewEndpoint(arg string) (ep Endpoint, e error) {
|
||||
host, port, err = net.SplitHostPort(u.Host)
|
||||
if err != nil {
|
||||
if !strings.Contains(err.Error(), "missing port in address") {
|
||||
return ep, fmt.Errorf("invalid URL endpoint format: %s", err)
|
||||
return ep, fmt.Errorf("invalid URL endpoint format: %w", err)
|
||||
}
|
||||
|
||||
host = u.Host
|
||||
|
||||
Reference in New Issue
Block a user