diff --git a/generator/mavgen_javascript.py b/generator/mavgen_javascript.py index e482f47bb..79dbcfb1d 100644 --- a/generator/mavgen_javascript.py +++ b/generator/mavgen_javascript.py @@ -846,7 +846,7 @@ def generate_mavlink_class(outf, msgs, xml): var messageChecksum2 = ${MAVHEAD}.x25Crc([decoder.crc_extra], messageChecksum); if ( receivedChecksum != messageChecksum2 ) { - throw new Error('invalid MAVLink CRC in msgID ' +msgId+ ', got 0x' + receivedChecksum + ' checksum, calculated payload checksum as 0x'+messageChecksum2 ); + throw new Error('invalid MAVLink CRC in msgID ' +msgId+ ', got ' + receivedChecksum + ' checksum, calculated payload checksum as '+messageChecksum2 ); } // now check the signature... diff --git a/generator/mavgen_javascript_stable.py b/generator/mavgen_javascript_stable.py index aed7c3b00..27dcea3ba 100644 --- a/generator/mavgen_javascript_stable.py +++ b/generator/mavgen_javascript_stable.py @@ -570,7 +570,7 @@ def generate_mavlink_class(outf, msgs, xml): messageChecksum = ${MAVHEAD}.x25Crc([decoder.crc_extra], messageChecksum); if ( receivedChecksum != messageChecksum ) { - throw new Error('invalid MAVLink CRC in msgID ' +msgId+ ', got 0x' + receivedChecksum + ' checksum, calculated payload checksum as 0x'+messageChecksum ); + throw new Error('invalid MAVLink CRC in msgID ' +msgId+ ', got ' + receivedChecksum + ' checksum, calculated payload checksum as '+messageChecksum ); } var paylen = jspack.CalcLength(decoder.format);