mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-11 23:50:04 +01:00
chore(*): update command error type
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
parent
a4d4c459ba
commit
1c73b92f0f
5 changed files with 9 additions and 9 deletions
|
|
@ -71,7 +71,7 @@ func InstallPluginUsingGo(ctx context.Context,
|
|||
}, []string{"GOBIN=" + dir, "GO111MODULE=on"})
|
||||
if err2 != nil {
|
||||
return "", &ErrGoInstall{
|
||||
ErrCommandExec: err2,
|
||||
ErrCommandExec: err2.(*command.ErrCommandExec),
|
||||
}
|
||||
}
|
||||
return local, nil
|
||||
|
|
@ -114,7 +114,7 @@ func ListGoPackageVersions(ctx context.Context, log logger.Logger, path string)
|
|||
})
|
||||
if err != nil {
|
||||
return nil, &ErrGoList{
|
||||
ErrCommandExec: err,
|
||||
ErrCommandExec: err.(*command.ErrCommandExec),
|
||||
}
|
||||
}
|
||||
var module Module
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue