Skip to content

Commit

Permalink
fix panic error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseguy committed Sep 24, 2024
1 parent 1d6c2d5 commit 65e0a55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/replayor/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (r *Service) Start(ctx context.Context) error {
r.log.Info("Starting benchmark", "start_block", currentBlock.NumberU64())
strategy := strategies.LoadStrategy(r.cfg, r.log, r.clients, currentBlock)
if strategy == nil {
panic(err)
panic("failed to load strategy")
}

benchmark := NewBenchmark(r.clients, r.cfg.RollupConfig, r.log, strategy, r.stats, currentBlock, uint64(r.cfg.BlockCount), r.cfg.BenchmarkOpcodes, r.cfg.ComputeStorageDiffs)
Expand Down
2 changes: 1 addition & 1 deletion packages/strategies/stress.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (s *StressTest) modifyTransactions(input *types.Block, transactions types.T

val, ok := new(big.Int).SetString("100000000000000000000", 10)
if !ok {
panic(err)
panic("failed to convert string to big.Int")
}

dep.SourceHash = source.SourceHash()
Expand Down

0 comments on commit 65e0a55

Please sign in to comment.