Skip to content

Commit

Permalink
Improve mc-cp error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishnan Parthasarathi committed Jul 11, 2017
1 parent 5c135d2 commit ec0aa52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/cp-url-syntax.go
Expand Up @@ -20,6 +20,7 @@ import (
"fmt"

"github.com/minio/cli"
"github.com/minio/mc/pkg/console"
)

func checkCopySyntax(ctx *cli.Context) {
Expand All @@ -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)
}
}

Expand Down

0 comments on commit ec0aa52

Please sign in to comment.