Merge pull request #419 from kaktus42/error_specification

add error message for bad dependency declaration
This commit is contained in:
John Chilton
2015-07-17 14:56:52 +01:00
+3
View File
@@ -1060,6 +1060,9 @@ class Tool( object, Dictifiable ):
# If parameter depends on any other paramters, we must refresh the
# form when it changes
for name in param.get_dependencies():
# Let it throw exception, but give some hint what the problem might be
if name not in context:
log.error("Could not find dependency '%s' of parameter '%s' in tool %s" % (name, param.name, self.name) )
context[ name ].refresh_on_change = True
return param