mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-26 04:47:45 +08:00
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>
This commit is contained in:
parent
3a927cbcec
commit
be62b76516
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
@ -22,7 +21,7 @@ import (
|
||||
daemon "github.com/jbenet/go-ipfs/daemon2"
|
||||
updates "github.com/jbenet/go-ipfs/updates"
|
||||
u "github.com/jbenet/go-ipfs/util"
|
||||
"github.com/jbenet/go-ipfs/util/debugerror"
|
||||
errors "github.com/jbenet/go-ipfs/util/debugerror"
|
||||
elog "github.com/jbenet/go-ipfs/util/elog"
|
||||
)
|
||||
|
||||
@ -321,7 +320,7 @@ func commandDetails(path []string, root *cmds.Command) (*cmdDetails, error) {
|
||||
var found bool
|
||||
cmd, found = cmd.Subcommands[cmp]
|
||||
if !found {
|
||||
return nil, debugerror.Errorf("subcommand %s should be in root", cmp)
|
||||
return nil, errors.Errorf("subcommand %s should be in root", cmp)
|
||||
}
|
||||
|
||||
if cmdDetails, found := cmdDetailsMap[cmd]; found {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user