mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-23 03:23:33 +08:00
promptive error message
This commit is contained in:
@@ -40,6 +40,10 @@ func runExport(cmd *Command, args []string) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *dest!="" && !strings.HasSuffix(*dest, ".tar") {
|
||||||
|
fmt.Println("the output file", *dest, "should ends with .tar")
|
||||||
|
return false
|
||||||
|
}
|
||||||
var err error
|
var err error
|
||||||
if strings.HasSuffix(*dest, ".tar") {
|
if strings.HasSuffix(*dest, ".tar") {
|
||||||
var fh *os.File
|
var fh *os.File
|
||||||
|
Reference in New Issue
Block a user