1
0
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:
Harshavardhana
2015-06-13 21:36:42 -07:00
parent 4b99854f4d
commit c04acf4d50
19 changed files with 104 additions and 70 deletions

View File

@@ -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()