Commit 8f527076 authored by zhourong's avatar zhourong

refactor(*): deal with execution error

parent f6437e71
......@@ -345,8 +345,11 @@ func (c *Client) InvokeInterchain(from string, index uint64, destAddr string, ca
logger.Error("Can't send rollback ibtp back to bitxhub", "err", err.Error())
}
logger.Info("response", "cc status", strconv.Itoa(int(res.ChaincodeStatus)), "payload", string(res.Payload), res.ChaincodeStatus)
if err != nil {
return nil, nil, err
}
logger.Info("response", "cc status", strconv.Itoa(int(res.ChaincodeStatus)), "payload", string(res.Payload))
response := &Response{}
if err := json.Unmarshal(res.Payload, response); err != nil {
return nil, nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment