This commit is contained in:
Łukasz Magiera 2021-07-23 15:53:22 +02:00
parent 4b8a5068bd
commit ac2a1bfeab
3 changed files with 6 additions and 4 deletions

View File

@ -2,11 +2,12 @@ package main
import (
"fmt"
"github.com/filecoin-project/lotus/node/repo"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/node/config"
"github.com/filecoin-project/lotus/node/repo"
)
var configCmd = &cli.Command{
@ -51,7 +52,7 @@ var configUpdateCmd = &cli.Command{
},
},
Action: func(cctx *cli.Context) error {
r, err := repo.NewFS(cctx.String("repo"))
r, err := repo.NewFS(cctx.String(FlagMinerRepo))
if err != nil {
return err
}

View File

@ -2,11 +2,12 @@ package main
import (
"fmt"
"github.com/filecoin-project/lotus/node/repo"
"github.com/urfave/cli/v2"
"golang.org/x/xerrors"
"github.com/filecoin-project/lotus/node/config"
"github.com/filecoin-project/lotus/node/repo"
)
var configCmd = &cli.Command{

View File

@ -125,7 +125,7 @@ var Doc = map[string][]DocField{
func main() {
if err := run(); err != nil {
fmt.Printf(err.Error())
fmt.Println(err.Error())
os.Exit(1)
}
}