@@ -14,7 +14,6 @@ import (
1414 peer "github.com/ipfs/go-ipfs/p2p/peer"
1515 fsrepo "github.com/ipfs/go-ipfs/repo/fsrepo"
1616 util "github.com/ipfs/go-ipfs/util"
17- "github.com/ipfs/go-ipfs/util/debugerror"
1817)
1918
2019const (
@@ -56,7 +55,7 @@ in the network, use 0.0.0.0 as the ip address:
5655
5756 ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
5857
59- Be careful if you expose the API. It is a security risk, as anyone could use control
58+ Be careful if you expose the API. It is a security risk, as anyone could use control
6059your node remotely. If you need to control the node remotely, make sure to protect
6160the port as you would other services or database (firewall, authenticated proxy, etc).` ,
6261 },
@@ -98,7 +97,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
9897 if ! util .FileExists (req .Context ().ConfigRoot ) {
9998 err := initWithDefaults (os .Stdout , req .Context ().ConfigRoot )
10099 if err != nil {
101- res .SetError (debugerror . Wrap ( err ) , cmds .ErrNormal )
100+ res .SetError (err , cmds .ErrNormal )
102101 return
103102 }
104103 }
@@ -120,7 +119,7 @@ func daemonFunc(req cmds.Request, res cmds.Response) {
120119 // sure we are permitted to access the resources (datastore, etc.)
121120 repo , err := fsrepo .Open (req .Context ().ConfigRoot )
122121 if err != nil {
123- res .SetError (debugerror .Errorf ("Couldn't obtain lock. Is another daemon already running?" ), cmds .ErrNormal )
122+ res .SetError (fmt .Errorf ("Couldn't obtain lock. Is another daemon already running?" ), cmds .ErrNormal )
124123 return
125124 }
126125
0 commit comments