better error messages. regenerated for all versions of gecode
This commit is contained in:
parent
8b16734e1c
commit
05bd59a2fb
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -326,9 +326,9 @@ class DTree(object):
|
||||
|
||||
def _generate_dispatch(self, i, user_vars, lib_vars):
|
||||
if i == len(self.subtrees):
|
||||
return PrologLiteral("throw(gecode_argument_error(%s/%d,arg=%d,%s))" \
|
||||
% (self.cluster.name, self.cluster.arity,
|
||||
self.index+1, user_vars[self.index]))
|
||||
return PrologLiteral("throw(gecode_argument_error(%s(%s),arg=%d))" \
|
||||
% (self.cluster.name, ",".join(user_vars),
|
||||
self.index+1))
|
||||
typ, dtree = self.subtrees[i]
|
||||
idx = self.index
|
||||
X = user_vars[idx]
|
||||
|
Reference in New Issue
Block a user