Skip to content
This repository has been archived by the owner on Feb 17, 2024. It is now read-only.

Commit

Permalink
Check err from Profiling.Prepare
Browse files Browse the repository at this point in the history
  • Loading branch information
pelletier committed May 31, 2023
1 parent f4623c8 commit b5f992e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ func profile(ctx context.Context, args []string) error {
return err
}
defer compiledModule.Close(ctx)
p.Prepare(compiledModule)
err = p.Prepare(compiledModule)
if err != nil {
return err
}

replay := wasicall.NewReplay(records)
defer replay.Close(ctx)
Expand Down

0 comments on commit b5f992e

Please sign in to comment.