Add slack channel link to corrupted disk err msg (#4270)

This commit is contained in:
Anis Elleuch 2017-05-11 23:27:32 +02:00 committed by Harshavardhana
parent 5a16dcf4cf
commit f2ed149714
2 changed files with 3 additions and 3 deletions

View File

@ -21,6 +21,7 @@ import (
"fmt" "fmt"
"os" "os"
"path/filepath" "path/filepath"
"strings"
"testing" "testing"
"github.com/minio/minio/pkg/lock" "github.com/minio/minio/pkg/lock"
@ -173,8 +174,7 @@ func TestFSMigrateObjectWithErr(t *testing.T) {
} }
if err = initFormatFS(disk, uuid); err != nil { if err = initFormatFS(disk, uuid); err != nil {
if errorCause(err).Error() != if !strings.Contains(errorCause(err).Error(), "Unable to validate 'format.json', corrupted backend format") {
"Unable to validate 'format.json', corrupted backend format" {
t.Fatal("Should not fail with unexpected", err) t.Fatal("Should not fail with unexpected", err)
} }
} }

View File

@ -22,7 +22,7 @@ import "errors"
var errUnexpected = errors.New("Unexpected error, please report this issue at https://github.com/minio/minio/issues") var errUnexpected = errors.New("Unexpected error, please report this issue at https://github.com/minio/minio/issues")
// errCorruptedFormat - corrupted backend format. // errCorruptedFormat - corrupted backend format.
var errCorruptedFormat = errors.New("corrupted backend format") var errCorruptedFormat = errors.New("corrupted backend format, please join https://slack.minio.io for assistance")
// errUnformattedDisk - unformatted disk found. // errUnformattedDisk - unformatted disk found.
var errUnformattedDisk = errors.New("unformatted disk found") var errUnformattedDisk = errors.New("unformatted disk found")