mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #419 from kaktus42/error_specification
add error message for bad dependency declaration
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user