Skip to content

Commit 4e5fc8c

Browse files
committed
QFJ-944 Misleading error message when receiving Logon with tag RawData(96) without RawDataLength(95) (#181)
- improved error message (cherry picked from commit c14b77e)
1 parent 139fe4f commit 4e5fc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickfixj-core/src/main/java/quickfix/Message.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ private StringField extractField(DataDictionary dataDictionary, FieldMap fields)
819819
try {
820820
fieldLength = fields.getInt(lengthField);
821821
} catch (final FieldNotFound e) {
822-
throw new InvalidMessage("Tag " + e.field + " not found in " + messageData);
822+
throw new InvalidMessage("Did not find length field " + e.field + " required to parse data field " + tag + " in " + messageData);
823823
}
824824

825825
// since length is in bytes but data is a string, and it may also contain an SOH,

0 commit comments

Comments
 (0)