mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
Convert all errors.New and fmt.Errorf to typed errors
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/minio/cli"
|
||||
@@ -62,7 +61,7 @@ func runDiffCmd(ctx *cli.Context) {
|
||||
if !isMcConfigExist() {
|
||||
console.Fatals(ErrorMessage{
|
||||
Message: "Please run \"mc config generate\"",
|
||||
Error: iodine.New(errors.New("\"mc\" is not configured"), nil),
|
||||
Error: iodine.New(errNotConfigured{}, nil),
|
||||
})
|
||||
}
|
||||
config, err := getMcConfig()
|
||||
|
||||
Reference in New Issue
Block a user