mirror of
https://github.com/minio/mc.git
synced 2025-11-10 13:42:32 +03:00
Improve mc-cp error message (#2208)
This commit is contained in:
committed by
Dee Koder
parent
54a7460fa0
commit
8d7888eb4f
@@ -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 validate source %s\n", srcURL)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user