diff options
author | Dan 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) |
commit | 7c34d620cea7c8589025e60f66976a410fcc121f (patch) | |
tree | 29bc6ff231fb38142f1fd9e93d053d202c40882a | |
parent | d6e09f24e766149aefce937a4dd1d7f32363cfea (diff) |
Display missing distinct variables conditions
-rwxr-xr-x | ghilbert.py | 6 | ||||
-rwxr-xr-x | spock.py | 2 |
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: @@ -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): |