summaryrefslogtreecommitdiff
path: root/devtools/ais.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-01-29 11:19:30 +0000
committerEric S. Raymond <esr@thyrsus.com>2010-01-29 11:19:30 +0000
commit50b0f4a586f1805e749d4c5df54d7a5e71b9225d (patch)
treecb0e69463fd756c18a38c9a138a9cb3b0881a53b /devtools/ais.py
parent0360c8e443f2c223e3daf052c3dc16e4f3823775 (diff)
downloadgpsd-50b0f4a586f1805e749d4c5df54d7a5e71b9225d.tar.gz
Error-handling tweak.
Diffstat (limited to 'devtools/ais.py')
-rwxr-xr-xdevtools/ais.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/ais.py b/devtools/ais.py
index 30469f52..82c4f7ec 100755
--- a/devtools/ais.py
+++ b/devtools/ais.py
@@ -861,7 +861,7 @@ def parse_ais_messages(source, scaled=False, skiperr=False, verbose=0):
raise KeyboardInterrupt
except AISUnpackingException, e:
if skiperr:
- sys.stderr.write("Validation exception on type %s: %s\n" % (cooked[0][1], raw.strip()))
+ sys.stderr.write("%s: %s\n" % (`e`, raw.strip()))
continue
else:
raise e