diff --git a/pyModeS/adsb.py b/pyModeS/adsb.py index 3ac99b7..b2ddb19 100644 --- a/pyModeS/adsb.py +++ b/pyModeS/adsb.py @@ -492,7 +492,7 @@ def nic(msg): int: NIC number (from 0 to 11), -1 if not applicable """ if typecode(msg) < 9 or typecode(msg) > 18: - raise RuntimeError("%s: Not a airborne position message" % msg) + raise RuntimeError("%s: Not a airborne position message, expecting 8 8: - raise RuntimeError("%s: Not a surface message" % msg) + raise RuntimeError("%s: Not a surface message, expecting 5