Skip to content

Commit

Permalink
refactor: clearer error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Dancia committed Jan 5, 2024
1 parent 7785dc7 commit f11ac1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/arbitrum-publisher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {

service, errSvc := ipc.NewClient(ctx, *flagIpcPath)
if errSvc != nil {
log.Fatalf("Starting service error: %s", errSvc.Error())
log.Fatalf("service startup error: %s", errSvc.Error())
}
log.Println("IPC socket connected.")

Expand Down
4 changes: 2 additions & 2 deletions pkg/ipc/ipc.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,13 @@ func (c *Ipc) processTraceCallDetails(txHashes []string) {
// Send the batched requests
err := c.RpcClient.BatchCallContext(c.ctx, batch)
if err != nil {
log.Fatal(err)
log.Fatalf("batch call error: %v", err)
}

// Process the responses
for i, elem := range batch {
if elem.Error != nil {
log.Fatal(elem.Error)
log.Fatalf("batch processing error: %v", elem.Error)
}

results[i].TxHash = txHashes[i]
Expand Down

0 comments on commit f11ac1e

Please sign in to comment.