diff --git a/services/api/blocksim_ratelimiter.go b/services/api/blocksim_ratelimiter.go index 6e22fc32..2b1bebf3 100644 --- a/services/api/blocksim_ratelimiter.go +++ b/services/api/blocksim_ratelimiter.go @@ -172,6 +172,9 @@ func SendJSONRPCRequest(client *http.Client, req jsonrpc.JSONRPCRequest, url str } if res.Error != nil { + if res.Error.Data != nil { + return res, nil, fmt.Errorf("%w: %s (%v)", ErrSimulationFailed, res.Error.Message, res.Error.Data) + } return res, nil, fmt.Errorf("%w: %s", ErrSimulationFailed, res.Error.Message) } return res, nil, nil