refactor(2/main) use debugerror
License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com> # TYPES # feat # fix # docs # style (formatting, missing semi colons, etc; no code change): # refactor # test (adding missing tests, refactoring tests; no production code change) # chore (updating grunt tasks etc; no production code change) Signed-off-by: Brian Tiger Chow <brian.holderchow@gmail.com>
Brian Tiger Chow committed
Nov 16, 2014 at 03:57 UTC
be62b765160c8a8df7d10ee1d9cf238020fa14e8
1 file changed
+2
-3
cmd/ipfs2/main.go
+2
-3
@@ -1,7 +1,6 @@
1
package main
2
3
import (
4
- "errors"
4
"fmt"
5
"io"
6
"os"
@@ -22,7 +21,7 @@ import (
21
daemon "github.com/jbenet/go-ipfs/daemon2"
22
updates "github.com/jbenet/go-ipfs/updates"
23
u "github.com/jbenet/go-ipfs/util"
25
- "github.com/jbenet/go-ipfs/util/debugerror"
24
+ errors "github.com/jbenet/go-ipfs/util/debugerror"
25
elog "github.com/jbenet/go-ipfs/util/elog"
26
)
27
@@ -321,7 +320,7 @@ func commandDetails(path []string, root *cmds.Command) (*cmdDetails, error) {
320
var found bool
321
cmd, found = cmd.Subcommands[cmp]
322
if !found {
324
- return nil, debugerror.Errorf("subcommand %s should be in root", cmp)
323
+ return nil, errors.Errorf("subcommand %s should be in root", cmp)
324
}
325
326
if cmdDetails, found := cmdDetailsMap[cmd]; found {