Skip to content

Commit

Permalink
Add more context to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Feb 6, 2025
1 parent d93dda5 commit 0d2a705
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions systest/tests/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ BACKOFF:
Watch: true,
})
if err != nil {
return err
return fmt.Errorf("streaming layers for %s: %w", node.Name, err)
}
defer stream.CloseSend()
for {
Expand Down Expand Up @@ -196,7 +196,7 @@ BACKOFF:
Watch: true,
})
if err != nil {
return err
return fmt.Errorf("streaming malfeasance for %s: %w", node.Name, err)
}
defer stream.CloseSend()
for {
Expand Down Expand Up @@ -266,7 +266,7 @@ BACKOFF:
Watch: true,
})
if err != nil {
return err
return fmt.Errorf("streaming transactions for %s: %w", node.Name, err)
}
defer stream.CloseSend()
for {
Expand Down Expand Up @@ -317,7 +317,7 @@ func watchProposals(
client := pb.NewDebugServiceClient(node.PrivConn())
stream, err := client.ProposalsStream(ctx, &emptypb.Empty{})
if err != nil {
return fmt.Errorf("proposal stream for %s: %w", node.Name, err)
return fmt.Errorf("streaming proposals for %s: %w", node.Name, err)
}
defer stream.CloseSend()
for {
Expand Down

0 comments on commit 0d2a705

Please sign in to comment.