@cryptotaxi247 / kubo / commits / ea76b66b7

output these errors directly to the user

Henry committed Oct 15, 2014 at 14:00 UTC ea76b66b7f8a6a0a2fadd46da403c43b8ee55e78
1 file changed +2 -2
cmd/ipfs/ipfs.go
+2 -2
@@ -74,7 +74,7 @@ var log = u.Logger("cmd/ipfs")
74 func init() {
75 config, err := config.PathRoot()
76 if err != nil {
77 - log.Error("Failure initializing the default Config Directory: ", err)
77 + fmt.Fprintln(os.Stderr, "Failure initializing the default Config Directory: ", err)
78 os.Exit(1)
79 }
80 CmdIpfs.Flag.String("c", config, "specify config directory")
@@ -106,7 +106,7 @@ func main() {
106 err := CmdIpfs.Dispatch(os.Args[1:])
107 if err != nil {
108 if len(err.Error()) > 0 {
109 - log.Error("ipfs %s: %v\n", os.Args[1], err)
109 + fmt.Fprintf(os.Stderr, "ipfs %s: %v\n", os.Args[1], err)
110 }
111 os.Exit(1)
112 }