fix: create empty probe error to fatalIf() (#3199)

Fixes #3198
This commit is contained in:
Bala FA
2020-05-04 07:58:28 -07:00
committed by GitHub
parent df8bb795ba
commit ca650e227a
+2 -1
View File
@@ -17,6 +17,7 @@
package cmd
import (
"errors"
"fmt"
"os"
"sync"
@@ -295,7 +296,7 @@ func mainMove(ctx *cli.Context) error {
if s3Client, ok := client.(*S3Client); ok {
if _, _, _, err = s3Client.GetObjectLockConfig(); err == nil {
fatalIf(err, fmt.Sprintf("object lock configuration is enabled on the specified bucket in alias %v.", urlStr))
fatalIf(probe.NewError(errors.New("")), fmt.Sprintf("Object lock configuration is enabled on the specified bucket in alias %v.", urlStr))
}
}
}