py/gadict_freq.py
changeset 646 2d488cfc4c0c
parent 645 6d4a074cea27
child 723 53095b480a73
--- a/py/gadict_freq.py	Tue Nov 08 18:12:50 2016 +0200
+++ b/py/gadict_freq.py	Tue Nov 08 19:01:27 2016 +0200
@@ -68,7 +68,7 @@
             self.lineno += 1
             m = self.FREQ_RE.match(line)
             if not m:
-                raise Exception("Line {:d} is not in NUM WORD format\n".format(self.lineno, line))
+                raise Exception("Line '{:s}' #{:d} is not in NUM WORD format\n".format(line, self.lineno))
             headword = m.group(2).strip().lower()
             wlist.append(headword)
         return wlist