https://samtools.github.io/hts-specs/SAMtags.pdf">specification</a> it will log the error and ignore the record.
However, it may be important to know precisely how many records are unusable and for what reason.
The <code>modkit modbam check-tags</code> command is for this purpose.
It will tabulate the error conditions in the modBAM and report out how many of each problem it encounters.
When there are any records that cause an error, the command will exit 1 (unless the <code>--permissive</code> flag is given