mount command on windows returns an error instead of nil and adjusted unix-only code

This commit is contained in:
verokarhu 2014-08-01 00:51:43 +03:00
parent dcd0bac8e5
commit fef46e44f8
3 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
// +build !windows
// +build linux darwin freebsd
package main

View File

@ -1,7 +1,7 @@
package main
import (
"fmt"
"errors"
"github.com/gonuts/flag"
"github.com/jbenet/commander"
)
@ -15,7 +15,5 @@ var cmdIpfsMount = &commander.Command{
}
func mountCmd(c *commander.Command, inp []string) error {
fmt.Printf("not implemented yet\n")
return nil
return errors.New("mount not yet implemented on windows")
}

View File

@ -1,6 +1,6 @@
// A Go mirror of libfuse's hello.c
// +build !windows
// +build linux darwin freebsd
package readonly