mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-01 01:40:44 +01:00
promptive error message
This commit is contained in:
1 parent
06444b7c52
commit
030dde227a
1 file changed
+4
@@ -40,6 +40,10 @@ func runExport(cmd *Command, args []string) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
if *dest!="" && !strings.HasSuffix(*dest, ".tar") {
|
||||
fmt.Println("the output file", *dest, "should ends with .tar")
|
||||
return false
|
||||
}
|
||||
var err error
|
||||
if strings.HasSuffix(*dest, ".tar") {
|
||||
var fh *os.File
|
||||
|
||||
Reference in new issue
Block a user