Skip to content
Snippets Groups Projects
Commit ba4907b2 authored by Silas Davis's avatar Silas Davis Committed by GitHub
Browse files

Merge pull request #608 from zramsay/fix-error-message

fix error formatting
parents 7e7a2fd7 2fff8377
No related branches found
No related tags found
No related merge requests found
......@@ -173,8 +173,8 @@ func (burrowNodeClient *burrowNodeClient) QueryContract(callerAddress, calleeAdd
client := rpcclient.NewJSONRPCClient(burrowNodeClient.broadcastRPC)
callResult, err := tendermint_client.Call(client, callerAddress, calleeAddress, data)
if err != nil {
err = fmt.Errorf("Error connnecting to node (%s) to query contract at (%X) with data (%X)",
burrowNodeClient.broadcastRPC, calleeAddress, data, err.Error())
err = fmt.Errorf("Error (%v) connnecting to node (%s) to query contract at (%X) with data (%X)",
err.Error(), burrowNodeClient.broadcastRPC, calleeAddress, data)
return nil, int64(0), err
}
return callResult.Return, callResult.GasUsed, nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment