OSDN Git Service

keyCommandsDoc module: make the %kc:setting command exception a bit more helpfull...
authorPeter Vágner <peter.v@datagate.sk>
Thu, 9 Sep 2010 08:15:30 +0000 (10:15 +0200)
committerPeter Vágner <peter.v@datagate.sk>
Thu, 9 Sep 2010 08:15:30 +0000 (10:15 +0200)
source/keyCommandsDoc.py

index 38b5a73..641df93 100644 (file)
@@ -243,7 +243,7 @@ class KeyCommandsMaker(object):
                # There should now be a blank line.\r
                line = next(self._ug).strip()\r
                if line:\r
-                       raise KeyCommandsError("setting command: The keyboard shortcuts must be followed by a blank line")\r
+                       raise KeyCommandsError("setting command: The keyboard shortcuts must be followed by a blank line. Multiple keys must be included in a table. Erroneous key: %s"%key)\r
 \r
                # Finally, the next line should be the description.\r
                desc = next(self._ug).strip()\r