File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,14 @@ import (
6
6
"os"
7
7
8
8
"github.com/filecoin-project/go-state-types/abi"
9
- "github.com/filecoin-project/lily/chain/export"
10
9
"github.com/filecoin-project/lotus/blockstore"
11
10
"github.com/filecoin-project/lotus/chain/store"
12
11
"github.com/filecoin-project/lotus/node/repo"
13
12
"github.com/mitchellh/go-homedir"
14
13
"github.com/urfave/cli/v2"
15
14
"golang.org/x/xerrors"
15
+
16
+ "github.com/filecoin-project/lily/chain/export"
16
17
)
17
18
18
19
type chainExportOps struct {
@@ -109,7 +110,7 @@ Some examples:
109
110
Before : func (cctx * cli.Context ) error {
110
111
from , to := chainExportFlags .from , chainExportFlags .to
111
112
if to < from {
112
- xerrors .Errorf ("value of --to (%d) should be >= --from (%d)" , to , from )
113
+ return xerrors .Errorf ("value of --to (%d) should be >= --from (%d)" , to , from )
113
114
}
114
115
115
116
return nil
Original file line number Diff line number Diff line change @@ -6,11 +6,12 @@ import (
6
6
"strings"
7
7
"time"
8
8
9
- "github.com/filecoin-project/lily/chain"
10
- "github.com/filecoin-project/lily/lens/lily"
11
9
lotuscli "github.com/filecoin-project/lotus/cli"
12
10
"github.com/urfave/cli/v2"
13
11
"golang.org/x/xerrors"
12
+
13
+ "github.com/filecoin-project/lily/chain"
14
+ "github.com/filecoin-project/lily/lens/lily"
14
15
)
15
16
16
17
type gapOps struct {
@@ -91,7 +92,7 @@ var GapFillCmd = &cli.Command{
91
92
Before : func (cctx * cli.Context ) error {
92
93
from , to := gapFlags .from , gapFlags .to
93
94
if to < from {
94
- xerrors .Errorf ("value of --to (%d) should be >= --from (%d)" , to , from )
95
+ return xerrors .Errorf ("value of --to (%d) should be >= --from (%d)" , to , from )
95
96
}
96
97
97
98
return nil
Original file line number Diff line number Diff line change @@ -6,12 +6,13 @@ import (
6
6
"strings"
7
7
"time"
8
8
9
- "github.com/filecoin-project/lily/chain/actors/builtin"
10
- "github.com/filecoin-project/lily/lens/lily"
11
9
lotuscli "github.com/filecoin-project/lotus/cli"
12
10
"github.com/urfave/cli/v2"
13
11
"golang.org/x/xerrors"
14
12
13
+ "github.com/filecoin-project/lily/chain/actors/builtin"
14
+ "github.com/filecoin-project/lily/lens/lily"
15
+
15
16
"github.com/filecoin-project/lily/chain"
16
17
)
17
18
@@ -92,7 +93,7 @@ var WalkCmd = &cli.Command{
92
93
Before : func (cctx * cli.Context ) error {
93
94
from , to := walkFlags .from , walkFlags .to
94
95
if to < from {
95
- xerrors .Errorf ("value of --to (%d) should be >= --from (%d)" , to , from )
96
+ return xerrors .Errorf ("value of --to (%d) should be >= --from (%d)" , to , from )
96
97
}
97
98
98
99
return nil
You can’t perform that action at this time.
0 commit comments