From f2ed149714e91345336e96cb1d41a7ca3b5025ba Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Thu, 11 May 2017 23:27:32 +0200 Subject: [PATCH] Add slack channel link to corrupted disk err msg (#4270) --- cmd/fs-v1_test.go | 4 ++-- cmd/storage-errors.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fs-v1_test.go b/cmd/fs-v1_test.go index 366ec010f..11c4dc313 100644 --- a/cmd/fs-v1_test.go +++ b/cmd/fs-v1_test.go @@ -21,6 +21,7 @@ import ( "fmt" "os" "path/filepath" + "strings" "testing" "github.com/minio/minio/pkg/lock" @@ -173,8 +174,7 @@ func TestFSMigrateObjectWithErr(t *testing.T) { } if err = initFormatFS(disk, uuid); err != nil { - if errorCause(err).Error() != - "Unable to validate 'format.json', corrupted backend format" { + if !strings.Contains(errorCause(err).Error(), "Unable to validate 'format.json', corrupted backend format") { t.Fatal("Should not fail with unexpected", err) } } diff --git a/cmd/storage-errors.go b/cmd/storage-errors.go index ee1729dce..40c7beed0 100644 --- a/cmd/storage-errors.go +++ b/cmd/storage-errors.go @@ -22,7 +22,7 @@ import "errors" var errUnexpected = errors.New("Unexpected error, please report this issue at https://github.com/minio/minio/issues") // 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. var errUnformattedDisk = errors.New("unformatted disk found")