Skip to content

Commit 639830f

Browse files
authored
fix(internal-msg): correctly handle error (#627)
* fix(internal-msg): correctly handle error - fixes #621
1 parent b5d55f7 commit 639830f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lens/lily/impl.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (m *LilyNodeAPI) GetMessageExecutionsForTipSet(ctx context.Context, ts *typ
164164

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

0 commit comments

Comments
 (0)