Browse Source

promptive error message

pull/2/head
Chris Lu 12 years ago
parent
commit
030dde227a
  1. 4
      weed-fs/src/cmd/weed/export.go

4
weed-fs/src/cmd/weed/export.go

@ -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

Loading…
Cancel
Save