Skip to content

Commit

Permalink
fix(internal-msg): correctly handle error (#627)
Browse files Browse the repository at this point in the history
* fix(internal-msg): correctly handle error

- fixes #621
  • Loading branch information
frrist authored Aug 9, 2021
1 parent b5d55f7 commit 639830f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lens/lily/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (m *LilyNodeAPI) GetMessageExecutionsForTipSet(ctx context.Context, ts *typ

// if lily was watching the chain when this tipset was applied then its exec monitor will already
// contain executions for this tipset.
executions, err := msgMonitor.ExecutionFor(pts) //lint:ignore SA4006 false positive
executions, err := msgMonitor.ExecutionFor(pts)
if err == modules.ExecutionTraceNotFound {
// if lily hasn't watched this tipset be applied then we need to compute its execution trace.
// this will likely be the case for most walk tasks.
Expand All @@ -177,7 +177,8 @@ func (m *LilyNodeAPI) GetMessageExecutionsForTipSet(ctx context.Context, ts *typ
if err != nil {
return nil, xerrors.Errorf("failed to find execution trace for tipset: %s", pts.Key().String())
}
} else {
}
if err != nil {
return nil, xerrors.Errorf("failed to extract message execution for tipset %s: %w", ts, err)
}

Expand Down

0 comments on commit 639830f

Please sign in to comment.