make sure user passes an address
This commit is contained in:
parent
4f91550851
commit
2c5d7e733b
@ -26,6 +26,10 @@ var minerStart = &cli.Command{
|
|||||||
|
|
||||||
ctx := ReqContext(cctx)
|
ctx := ReqContext(cctx)
|
||||||
|
|
||||||
|
if !cctx.Args().Present() {
|
||||||
|
return fmt.Errorf("must specify miner actor address to mine for")
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: need to pull this from disk or something
|
// TODO: need to pull this from disk or something
|
||||||
maddr, err := address.NewFromString(cctx.Args().First())
|
maddr, err := address.NewFromString(cctx.Args().First())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user