File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -468,17 +468,17 @@ func (s *session) doReject(msg Message, rej MessageRejectError) {
468468 case rej .RejectReason () > rejectReasonInvalidMsgType && s .sessionID .BeginString == enum .BeginStringFIX42 :
469469 //fix42 knows up to invalid msg type
470470 }
471+
472+ if refTagID := rej .RefTagID (); refTagID != nil {
473+ reply .Body .SetField (tagRefTagID , FIXInt (* refTagID ))
474+ }
471475 }
472476 reply .Body .SetField (tagText , FIXString (rej .Error ()))
473477
474478 var msgType FIXString
475479 if err := msg .Header .GetField (tagMsgType , & msgType ); err == nil {
476480 reply .Body .SetField (tagRefMsgType , msgType )
477481 }
478-
479- if refTagID := rej .RefTagID (); refTagID != nil {
480- reply .Body .SetField (tagRefTagID , FIXInt (* refTagID ))
481- }
482482 } else {
483483 reply .Header .SetField (tagMsgType , FIXString ("3" ))
484484
You can’t perform that action at this time.
0 commit comments