Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Krejsa <dan.krejsa@gmail.com>2009-09-12 20:56:27 (GMT)
committer Dan Krejsa <dan.krejsa@gmail.com>2009-09-12 20:56:27 (GMT)
commit7c34d620cea7c8589025e60f66976a410fcc121f (patch)
tree29bc6ff231fb38142f1fd9e93d053d202c40882a
parentd6e09f24e766149aefce937a4dd1d7f32363cfea (diff)
Display missing distinct variables conditions
-rwxr-xr-xghilbert.py6
-rwxr-xr-xspock.py2
2 files changed, 5 insertions, 3 deletions
diff --git a/ghilbert.py b/ghilbert.py
index 1a89e94..19e7bef 100755
--- a/ghilbert.py
+++ b/ghilbert.py
@@ -1478,8 +1478,10 @@ class Ghilbert():
needed = dvreqs - dvs
if needed:
- raise GhMissingDvcsError(_("Missing distinct variable conditions"),
- needed)
+ raise GhCmdExprError(
+ _("Missing distinct variable conditions:%s") %
+ dvs_to_string(needed, pip.vlist), expr, (1,len(expr[1])))
+
if dvs is not None:
extra = dvs - dvreqs
if extra:
diff --git a/spock.py b/spock.py
index de46159..e7b9e8f 100755
--- a/spock.py
+++ b/spock.py
@@ -112,7 +112,7 @@ class SpockScanner:
start = self.i.copy()
if self.skip_expr() == ')':
- raise ghilbert.GhError('delimitError 3')
+ return (start, start)
return (start, self.i)
class SpockBuffer(gtksourceview2.Buffer):