From ec0aa522675df808d281fa919162507ae9dc8192 Mon Sep 17 00:00:00 2001 From: Krishnan Parthasarathi Date: Mon, 10 Jul 2017 17:23:25 +0530 Subject: [PATCH] Improve mc-cp error message --- cmd/cp-url-syntax.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/cp-url-syntax.go b/cmd/cp-url-syntax.go index 61a9edaed8..c2e70547d9 100644 --- a/cmd/cp-url-syntax.go +++ b/cmd/cp-url-syntax.go @@ -20,6 +20,7 @@ import ( "fmt" "github.com/minio/cli" + "github.com/minio/mc/pkg/console" ) func checkCopySyntax(ctx *cli.Context) { @@ -42,7 +43,7 @@ func checkCopySyntax(ctx *cli.Context) { for _, srcURL := range srcURLs { _, _, err := url2Stat(srcURL) if err != nil { - fatalIf(err.Trace(srcURL), fmt.Sprintf("Unable to stat '%s'.", srcURL)) + console.Fatalf("Unable to determine validity of source %s\n", srcURL) } }