luky116 commented on code in PR #686:
URL: 
https://github.com/apache/incubator-seata-go/pull/686#discussion_r1840284872


##########
pkg/rm/rm_remoting.go:
##########
@@ -156,7 +156,7 @@ func isRegisterSuccess(response interface{}) bool {
 func isReportSuccess(response interface{}) error {
        if res, ok := response.(message.BranchReportResponse); ok {
                if res.ResultCode == message.ResultCodeFailed {
-                       return fmt.Errorf(res.Msg)
+                       return errors.New(res.Msg)

Review Comment:
   这里为啥改动?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to